/* =====================================================================
   nadl-ui.css  —  linkoom 공통 UI (헤더 · 드로어 · 푸터 · 하단 탭바 · 지도)
   - 모든 클래스는 nd- 접두사 : 기존 레거시 CSS 와 충돌하지 않도록 분리
   - 기존 페이지 본문은 건드리지 않고, 폰트/링크색/배경만 공통 적용
   ===================================================================== */

:root {
	--nd-brand:        #007A94;   /* 버튼·링크 (흰 글자 대비 4.99:1) */
	--nd-brand-press:  #00657B;
	--nd-brand-bright: #19C3DC;   /* 검색 반경 링, 강조선 (텍스트에는 사용 안 함) */
	--nd-brand-tint:   #E3F7FA;
	--nd-ink:          #1A2236;   /* 본문 */
	--nd-ink-2:        #5B6577;   /* 보조 */
	--nd-ink-3:        #6B7486;   /* 메타 (흰 바탕 4.7:1) */
	--nd-line:         #E3E7ED;
	--nd-bg:           #F3F5F8;
	--nd-surface:      #FFFFFF;
	--nd-danger:       #C92A2A;

	--nd-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Noto Sans KR", sans-serif;

	--nd-header-h: 56px;
	--nd-tabbar-h: 64px;
	--nd-safe-b: env(safe-area-inset-bottom, 0px);

	--nd-r-sm: 8px;
	--nd-r-md: 12px;
	--nd-r-lg: 20px;
	--nd-shadow-float: 0 1px 2px rgba(26,34,54,.08), 0 6px 20px rgba(26,34,54,.10);
	--nd-shadow-sheet: 0 -1px 0 rgba(26,34,54,.06), 0 -8px 28px rgba(26,34,54,.10);
}
@media (min-width: 960px) {
	:root { --nd-header-h: 64px; }
}

/* ---------- 공통 바탕 (레거시 페이지 포함) ---------- */
body.nd {
	font-family: var(--nd-font);
	color: var(--nd-ink);
	background: var(--nd-bg);
	min-width: 0;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	word-break: keep-all;           /* 한글 단어 단위 줄바꿈 */
	overflow-wrap: anywhere;
}
body.nd a:link, body.nd a:visited { color: var(--nd-ink); }
body.nd a:hover { color: var(--nd-brand); }

.nd-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nd-ico { display: inline-block; flex: none; vertical-align: middle; }

body.nd :focus-visible {
	outline: 2px solid var(--nd-brand);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- 버튼 ---------- */
.nd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; padding: 0 16px; border-radius: 999px;
	font: 600 14px/1 var(--nd-font); letter-spacing: -0.01em;
	border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	text-decoration: none !important; transition: background-color .15s, border-color .15s;
}
.nd-btn--primary,
body.nd a.nd-btn--primary:link, body.nd a.nd-btn--primary:visited { background: var(--nd-brand); color: #fff; }
.nd-btn--primary:hover, body.nd a.nd-btn--primary:hover { background: var(--nd-brand-press); color: #fff; }
.nd-btn--ghost,
body.nd a.nd-btn--ghost:link, body.nd a.nd-btn--ghost:visited { background: transparent; color: var(--nd-ink); border-color: var(--nd-line); }
.nd-btn--ghost:hover, body.nd a.nd-btn--ghost:hover { background: var(--nd-bg); color: var(--nd-ink); }
.nd-btn--block { width: 100%; height: 48px; font-size: 15px; }

.nd-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 999px; border: 0; padding: 0;
	background: transparent; color: var(--nd-ink); cursor: pointer;
}
.nd-iconbtn:hover { background: var(--nd-bg); }
body.nd a.nd-iconbtn:link, body.nd a.nd-iconbtn:visited { color: var(--nd-ink); }

/* =====================================================================
   헤더
   ===================================================================== */
.nd-header {
	position: sticky; top: 0; z-index: 900;
	height: var(--nd-header-h);
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--nd-line);
	font-family: var(--nd-font);
}
.nd-header__inner {
	display: flex; align-items: center; gap: 24px;
	max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 12px 0 16px;
	box-sizing: border-box;
}
.nd-page-map .nd-header__inner { max-width: none; }

.nd-logo { display: inline-flex; align-items: center; height: 100%; flex: none; }
.nd-logo img { display: block; height: 26px; width: auto; max-width: 140px; margin: 0 !important; }

.nd-nav-wrap { height: 100%; }
.nd-nav { display: none; align-items: center; gap: 4px; height: 100%; margin: 0; padding: 0; list-style: none; }
.nd-nav li { list-style: none; height: 100%; font-size: 15px; }
body.nd .nd-nav a:link, body.nd .nd-nav a:visited {
	position: relative; display: flex; align-items: center; height: 100%;
	padding: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
	color: var(--nd-ink-2); text-decoration: none;
}
body.nd .nd-nav a:hover { color: var(--nd-ink); }
body.nd .nd-nav a.is-active { color: var(--nd-ink); }
.nd-nav a.is-active::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
	height: 2px; border-radius: 2px; background: var(--nd-brand);
}

.nd-header__end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nd-header__desk { display: none; align-items: center; gap: 8px; }
body.nd .nd-header__desk a.nd-textlink:link, body.nd .nd-header__desk a.nd-textlink:visited {
	font-size: 14px; font-weight: 500; color: var(--nd-ink-2); text-decoration: none; padding: 8px 6px;
}
body.nd .nd-header__desk a.nd-textlink:hover { color: var(--nd-ink); }

.nd-locale {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
	border: 1px solid var(--nd-line); border-radius: 999px; background: #fff;
	font: 600 12px/1 var(--nd-font); color: var(--nd-ink-2); cursor: pointer;
}
.nd-locale img { width: 18px; height: auto; border-radius: 2px; }

.nd-pill {
	display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none !important;
}
body.nd a.nd-pill--admin:link, body.nd a.nd-pill--admin:visited { background: var(--nd-ink); color: #fff; }
body.nd a.nd-pill--partner:link, body.nd a.nd-pill--partner:visited { background: var(--nd-brand-tint); color: var(--nd-brand); }

.nd-badge-dot { position: relative; }

@media (min-width: 960px) {
	.nd-nav { display: flex; }
	.nd-header__desk { display: flex; }
	.nd-header__mobile-only { display: none !important; }
	.nd-header__inner { padding: 0 24px; }
	.nd-logo img { height: 30px; }
}

/* =====================================================================
   드로어 / 다이얼로그 (네이티브 <dialog>)
   ===================================================================== */
dialog.nd-dialog {
	border: 0; padding: 0; color: var(--nd-ink); font-family: var(--nd-font);
	background: var(--nd-surface);
}
dialog.nd-dialog::backdrop { background: rgba(26,34,54,.42); }
dialog.nd-dialog[open] { animation: nd-fade .18s ease-out; }

.nd-drawer {
	position: fixed; inset: 0 0 0 auto; margin: 0;
	width: min(86vw, 360px); max-width: none; height: 100%; max-height: none;
	box-sizing: border-box; overflow-y: auto;
}
.nd-drawer[open] { animation: nd-slide-in .22s cubic-bezier(.2,.8,.2,1); }
.nd-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	height: var(--nd-header-h); padding: 0 8px 0 20px; border-bottom: 1px solid var(--nd-line);
}
.nd-drawer__title { margin: 0; font-size: 17px; font-weight: 700; }
.nd-drawer__section { padding: 16px 20px; border-bottom: 1px solid var(--nd-line); }
.nd-drawer__section:last-child { border-bottom: 0; }
.nd-drawer__greet { margin: 0 0 12px; font-size: 15px; color: var(--nd-ink-2); }
.nd-drawer__greet strong { color: var(--nd-ink); font-weight: 700; }
.nd-drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nd-drawer__list { list-style: none; margin: 0; padding: 0; }
.nd-drawer__list li { list-style: none; font-size: 15px; }
body.nd .nd-drawer__list a:link, body.nd .nd-drawer__list a:visited,
.nd-drawer__list button {
	display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
	min-height: 48px; padding: 0 4px; border: 0; background: none; cursor: pointer;
	font: 500 15px/1.3 var(--nd-font); color: var(--nd-ink); text-decoration: none; text-align: left;
}
.nd-drawer__list a:hover, .nd-drawer__list button:hover { color: var(--nd-brand); }
.nd-drawer__list .nd-ico { color: var(--nd-ink-3); }
.nd-drawer__list .nd-chev { margin-left: auto; color: var(--nd-line); }
.nd-drawer__caption { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--nd-ink-3); }

.nd-modal {
	width: min(92vw, 400px); border-radius: var(--nd-r-lg); box-shadow: var(--nd-shadow-float);
}
.nd-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 24px; }
.nd-modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.nd-modal__body { padding: 8px 24px 8px; }
.nd-modal__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px 24px; }
.nd-field { display: block; margin: 0 0 16px; }
.nd-field__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--nd-ink-2); }
.nd-select {
	width: 100%; height: 48px; padding: 0 40px 0 14px; box-sizing: border-box;
	border: 1px solid var(--nd-line); border-radius: var(--nd-r-md); background: #fff;
	font: 500 15px var(--nd-font); color: var(--nd-ink);
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B7486' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}

@keyframes nd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nd-slide-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* =====================================================================
   푸터
   ===================================================================== */
.nd-footer {
	margin-top: 48px; padding: 40px 0 32px; background: var(--nd-surface);
	border-top: 1px solid var(--nd-line); font-family: var(--nd-font); color: var(--nd-ink-2);
}
.nd-footer__inner {
	display: grid; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.nd-footer__brand img { height: 26px; width: auto; display: block; margin-bottom: 16px; }
.nd-footer__info { margin: 0; font-size: 13px; line-height: 1.7; font-style: normal; }
.nd-footer__info dt { float: left; clear: left; width: 64px; color: var(--nd-ink-3); font-weight: 500; }
.nd-footer__info dd { margin: 0 0 0 64px; color: var(--nd-ink-2); }
.nd-footer__col h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--nd-ink); }
.nd-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nd-footer__links li { list-style: none; font-size: 14px; }
body.nd .nd-footer__links a:link, body.nd .nd-footer__links a:visited {
	display: inline-block; padding: 4px 0; font-size: 14px; color: var(--nd-ink-2); text-decoration: none;
}
body.nd .nd-footer__links a:hover { color: var(--nd-brand); }

.nd-fx { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.nd-fx li {
	display: flex; align-items: center; gap: 8px; padding: 8px 0; list-style: none; font-size: 13px;
	border-bottom: 1px solid var(--nd-line);
}
.nd-fx li:last-child { border-bottom: 0; }
.nd-fx img { width: 18px; height: auto; border-radius: 2px; }
.nd-fx__from { color: var(--nd-ink); font-weight: 600; }
.nd-fx__to { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--nd-ink); font-weight: 600; }
.nd-fx__date { margin: 8px 0 0; font-size: 12px; color: var(--nd-ink-3); }

.nd-footer__copy {
	max-width: 1200px; margin: 32px auto 0; padding: 20px 20px 0; box-sizing: border-box;
	border-top: 1px solid var(--nd-line); font-size: 12px; color: var(--nd-ink-3);
}
@media (min-width: 720px) {
	.nd-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =====================================================================
   하단 탭바 (모바일)
   ===================================================================== */
.nd-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
	height: calc(var(--nd-tabbar-h) + var(--nd-safe-b)); padding-bottom: var(--nd-safe-b);
	box-sizing: border-box;
	background: rgba(255,255,255,.94);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-top: 1px solid var(--nd-line);
	font-family: var(--nd-font);
}
.nd-tabbar ul {
	display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nd-tabbar-h);
	margin: 0 auto; padding: 0; max-width: 560px; list-style: none;
}
.nd-tabbar li { list-style: none; font-size: 11px; }
body.nd .nd-tabbar a:link, body.nd .nd-tabbar a:visited {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	height: 100%; font-size: 11px; font-weight: 600; color: var(--nd-ink-3); text-decoration: none;
}
body.nd .nd-tabbar a.is-active { color: var(--nd-brand); }
.nd-tabbar__write .nd-tabbar__plus {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-top: -2px; border-radius: 16px;
	background: var(--nd-ink); color: #fff;
}
body.nd .nd-tabbar a.nd-tabbar__write:link,
body.nd .nd-tabbar a.nd-tabbar__write:visited { gap: 0; }
body.nd.nd-has-tabbar { padding-bottom: calc(var(--nd-tabbar-h) + var(--nd-safe-b)); }

@media (min-width: 960px) {
	.nd-tabbar { display: none; }
	body.nd.nd-has-tabbar { padding-bottom: 0; }
}

/* =====================================================================
   지도 페이지 (map.php)
   ===================================================================== */
body.nd.nd-page-map { background: var(--nd-surface); }
.nd-page-map #wrap { background: transparent !important; }

.nd-map {
	position: fixed; z-index: 0; left: 0; right: 0;
	top: var(--nd-header-h); bottom: 0;
	background: #e9eef2;
}
.nd-map__canvas { width: 100%; height: 100%; }

/* 상단 검색 영역 (모바일: 지도 위에 떠 있음) */
.nd-mapbar {
	position: fixed; z-index: 20; left: 12px; right: 12px;
	top: calc(var(--nd-header-h) + 12px);
	transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
body.nd-sheet-open .nd-mapbar { transform: translateY(-140%); opacity: 0; pointer-events: none; }

.nd-search {
	margin: 0; padding: 6px; border-radius: 18px;
	background: var(--nd-surface); box-shadow: var(--nd-shadow-float);
}
.nd-search__row { display: flex; align-items: center; gap: 4px; }
.nd-search__icon { margin: 0 2px 0 8px; color: var(--nd-ink-3); }
.nd-search__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 4px; border: 0 !important; outline: 0;
	background: transparent; box-shadow: none !important;
	font: 500 16px var(--nd-font); color: var(--nd-ink);   /* 16px: iOS 확대 방지 */
}
.nd-search__input::placeholder { color: var(--nd-ink-3); }
.nd-search__go {
	height: 40px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer;
	background: var(--nd-brand); color: #fff; font: 700 14px var(--nd-font);
}
.nd-search__go:hover { background: var(--nd-brand-press); }

.nd-radius {
	display: flex; align-items: center; gap: 4px; margin: 6px 0 0; padding: 4px 2px 2px;
	border: 0; border-top: 1px solid var(--nd-line); min-width: 0;
}
.nd-radius legend { float: left; padding: 0 8px 0 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--nd-ink-3); }
.nd-radius label { position: relative; margin: 0; }
.nd-radius input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nd-radius span {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px;
	font-size: 13px; font-weight: 600; color: var(--nd-ink-2); cursor: pointer;
}
.nd-radius input:checked + span { background: var(--nd-ink); color: #fff; }
.nd-radius input:focus-visible + span { outline: 2px solid var(--nd-brand); outline-offset: 2px; }

/* 카테고리 칩 */
.nd-chips {
	display: flex; gap: 8px; margin: 10px -12px 0; padding: 0 12px 4px;
	overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 12px; scrollbar-width: none;
}
.nd-chips::-webkit-scrollbar { display: none; }
.nd-chip {
	display: inline-flex; align-items: center; gap: 6px; flex: none; scroll-snap-align: start;
	height: 34px; padding: 0 14px 0 12px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
	background: var(--nd-surface); box-shadow: var(--nd-shadow-float);
	font: 600 13px/1 var(--nd-font); color: var(--nd-ink); white-space: nowrap;
}
.nd-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--nd-ink-3)); }
.nd-chip.is-on { background: var(--nd-ink); color: #fff; }
.nd-chip.is-on i { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }

/* 떠 있는 버튼 */
.nd-fab {
	position: fixed; z-index: 15; right: 12px;
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 16px; border: 0; cursor: pointer;
	background: var(--nd-surface); color: var(--nd-ink); box-shadow: var(--nd-shadow-float);
}
.nd-fab--locate { bottom: calc(var(--nd-sheet-peek) + var(--nd-tabbar-h) + var(--nd-safe-b) + 12px); }
.nd-fab--quick  { bottom: calc(var(--nd-sheet-peek) + var(--nd-tabbar-h) + var(--nd-safe-b) + 68px); }
.nd-fab.is-busy svg { animation: nd-spin 1s linear infinite; }

.nd-mapview {
	position: fixed; z-index: 30; left: 50%; bottom: calc(var(--nd-tabbar-h) + var(--nd-safe-b) + 16px);
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px;
	border: 0; border-radius: 999px; cursor: pointer;
	background: var(--nd-ink); color: #fff; box-shadow: var(--nd-shadow-float);
	font: 700 14px var(--nd-font);
	transform: translate(-50%, 160%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
body.nd-sheet-open .nd-mapview { transform: translate(-50%, 0); }

/* 결과 시트 (모바일: 지도 아래에서 올라오는 시트, 페이지 스크롤로 펼침) */
.nd-page-map { --nd-sheet-peek: 188px; }
.nd-sheet {
	position: relative; z-index: 10;
	margin-top: calc(100vh - var(--nd-header-h) - var(--nd-tabbar-h) - var(--nd-sheet-peek));
	margin-top: calc(100dvh - var(--nd-header-h) - var(--nd-tabbar-h) - var(--nd-safe-b) - var(--nd-sheet-peek));
	min-height: calc(100vh - var(--nd-header-h));
	padding: 8px 16px 24px; box-sizing: border-box;
	background: var(--nd-surface); border-radius: var(--nd-r-lg) var(--nd-r-lg) 0 0;
	box-shadow: var(--nd-shadow-sheet);
	font-family: var(--nd-font);
}
.nd-sheet__handle { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 4px; background: var(--nd-line); }
.nd-sheet__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nd-sheet__title {
	margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; color: var(--nd-ink);
	min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nd-sheet__meta { margin: 4px 0 0; font-size: 13px; color: var(--nd-ink-3); }
.nd-sheet__count {
	flex: none; display: flex; flex-direction: column; align-items: flex-end;
	font-size: 12px; color: var(--nd-ink-3);
}
.nd-sheet__count strong { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--nd-brand); font-variant-numeric: tabular-nums; }

.nd-alert {
	margin: 0 0 12px; padding: 12px 14px; border-radius: var(--nd-r-md);
	background: #FFF1F1; color: var(--nd-danger); font-size: 14px; line-height: 1.5;
}
.nd-alert small { display: block; margin-top: 2px; color: #8f3b3b; font-size: 12px; }

/* load_map_while.php 가 그려주는 목록 기본 정리 */
.nd-list { min-height: 120px; }
.nd-list img { max-width: 100%; height: auto; border-radius: var(--nd-r-md); }
.nd-list a { text-decoration: none; }
.nd-empty {
	margin: 24px 0; padding: 28px 16px; border-radius: var(--nd-r-md);
	background: var(--nd-bg); text-align: center; color: var(--nd-ink-2); font-size: 14px; line-height: 1.6;
}
.nd-empty strong { display: block; margin-bottom: 4px; color: var(--nd-ink); font-size: 15px; }
.nd-empty--error { background: #FFF1F1; color: var(--nd-danger); }

.nd-loading { display: flex; justify-content: center; padding: 20px 0; }
.nd-spinner {
	width: 28px; height: 28px; border-radius: 50%;
	border: 3px solid var(--nd-line); border-top-color: var(--nd-brand);
	animation: nd-spin .8s linear infinite;
}
.nd-more {
	display: block; width: 100%; height: 48px; margin: 8px 0 0; border: 1px solid var(--nd-line);
	border-radius: var(--nd-r-md); background: #fff; cursor: pointer;
	font: 600 14px var(--nd-font); color: var(--nd-ink-2);
}
.nd-more:hover { background: var(--nd-bg); }
@keyframes nd-spin { to { transform: rotate(360deg); } }

/* 지도 말풍선 */
.nd-iw { display: flex; gap: 12px; width: 260px; max-width: 70vw; font-family: var(--nd-font); color: var(--nd-ink); }
.nd-iw__img { flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--nd-bg); }
.nd-iw__img img { width: 100% !important; height: 100% !important; object-fit: cover; float: none !important; padding: 0 !important; }
.nd-iw__body { min-width: 0; }
.nd-iw__name { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.nd-iw__addr { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--nd-ink-2); }
.nd-iw__meta { margin: 0 0 10px; font-size: 12px; color: var(--nd-ink-3); }
.nd-iw a.nd-iw__btn:link, .nd-iw a.nd-iw__btn:visited {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
	background: var(--nd-brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
}
.gm-style .gm-style-iw-c { border-radius: 16px !important; padding: 14px !important; box-shadow: var(--nd-shadow-float) !important; }

/* 퀵메뉴 다이얼로그 (하단 시트형) */
.nd-quick {
	position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none;
	border-radius: var(--nd-r-lg) var(--nd-r-lg) 0 0; padding-bottom: var(--nd-safe-b);
}
.nd-quick[open] { animation: nd-up .22s cubic-bezier(.2,.8,.2,1); }
.nd-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 16px 24px; }
body.nd .nd-quick__grid a:link, body.nd .nd-quick__grid a:visited {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px;
	border-radius: var(--nd-r-md); text-align: center; text-decoration: none;
	font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--nd-ink);
}
.nd-quick__grid a:hover { background: var(--nd-bg); }
.nd-quick__ico {
	display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border-radius: 16px; background: var(--nd-brand-tint); color: var(--nd-brand);
}
@keyframes nd-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- 데스크톱 : 왼쪽 패널 + 오른쪽 지도 ---------- */
@media (min-width: 960px) {
	.nd-page-map { --nd-panel-w: 440px; --nd-sheet-peek: 0px; --nd-tabbar-h: 0px; }
	.nd-map { left: var(--nd-panel-w); }
	.nd-panel {
		position: relative; z-index: 10; width: var(--nd-panel-w);
		min-height: calc(100vh - var(--nd-header-h));
		background: var(--nd-surface); border-right: 1px solid var(--nd-line); box-sizing: border-box;
	}
	.nd-mapbar {
		position: sticky; top: var(--nd-header-h); left: auto; right: auto;
		padding: 16px 16px 12px; background: var(--nd-surface); border-bottom: 1px solid var(--nd-line);
	}
	body.nd-sheet-open .nd-mapbar { transform: none; opacity: 1; pointer-events: auto; }
	.nd-search { box-shadow: none; border: 1px solid var(--nd-line); }
	.nd-chips { margin: 12px -16px 0; padding: 0 16px 2px; scroll-padding: 0 16px; }
	.nd-chip { box-shadow: none; border-color: var(--nd-line); }
	.nd-chip.is-on { border-color: var(--nd-ink); }
	.nd-sheet {
		margin-top: 0; min-height: 0; border-radius: 0; box-shadow: none; padding: 20px 16px 40px;
	}
	.nd-sheet__handle, .nd-mapview { display: none; }
	.nd-fab { right: 20px; }
	.nd-fab--locate { bottom: 32px; }
	.nd-fab--quick  { bottom: 88px; }
	.nd-quick {
		inset: 0; margin: auto; width: min(92vw, 480px); height: fit-content;
		border-radius: var(--nd-r-lg);
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 959px) {
	.nd-fab { transition: opacity .2s; }
	body.nd-sheet-open .nd-fab { opacity: 0; pointer-events: none; }
}

/* ---------- 드로어 : 검색 · 소모임 ---------- */
.nd-drawer__search {
	display: flex; align-items: center; gap: 8px; height: 48px; margin: 0; padding: 0 14px;
	border-radius: var(--nd-r-md); background: var(--nd-bg); color: var(--nd-ink-3);
}
.nd-drawer__search input {
	flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important;
	background: transparent; font: 500 16px var(--nd-font); color: var(--nd-ink);
}
.nd-drawer__search input::placeholder { color: var(--nd-ink-3); }
.nd-drawer__search:focus-within { box-shadow: 0 0 0 2px var(--nd-brand); }
.nd-drawer__value { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nd-ink-3); }
.nd-drawer__value img { width: 18px; height: auto; }
.nd-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.nd-groups li { list-style: none; font-size: 14px; }
body.nd .nd-groups a:link, body.nd .nd-groups a:visited {
	display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--nd-line); font-size: 14px; font-weight: 500; color: var(--nd-ink); text-decoration: none;
}
body.nd .nd-groups a:hover { border-color: var(--nd-brand); color: var(--nd-brand); }

/* ---------- 지도 하단 상점 카드 (load_map_while.php) : 2열 그리드 ---------- */
.nd-stores {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
	margin: 0 0 20px; padding: 0; list-style: none;
}
.nd-store {
	position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
	margin: 0; padding: 0; list-style: none; font-size: 14px;
}
.nd-store__hit {
	position: absolute; inset: -4px; z-index: 1; width: auto; padding: 0; border: 0; border-radius: 16px;
	background: transparent; cursor: pointer;
}
.nd-store__hit:hover { background: rgba(26,34,54,.035); }
.nd-store__thumb {
	position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--nd-r-md); overflow: hidden;
	background: var(--nd-bg); color: var(--nd-ink-3);
	display: flex; align-items: center; justify-content: center;
}
.nd-store__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.nd-store__body { min-width: 0; padding: 0 2px; }
.nd-store__meta { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; color: var(--nd-ink-3); min-width: 0; }
.nd-store__cat {
	display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-weight: 600; color: var(--nd-ink-2);
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.nd-store__cat i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--nd-ink-3)); }
.nd-store__dist { flex: none; font-weight: 700; color: var(--nd-brand); font-variant-numeric: tabular-nums; }
.nd-store__name {
	margin: 0 0 2px; font-size: 15px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--nd-ink);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nd-store__addr {
	margin: 0; font-size: 12px; line-height: 1.5; color: var(--nd-ink-2);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 3em;   /* 주소가 1줄이어도 카드 높이 맞춤 */
}
.nd-store__actions {
	position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
	margin-top: 6px; font-size: 12px; color: var(--nd-ink-3);
}
body.nd .nd-store__actions a:link, body.nd .nd-store__actions a:visited { font-size: 12px; font-weight: 600; color: var(--nd-brand); text-decoration: none; }
body.nd .nd-store__actions a.nd-store__edit { color: var(--nd-ink-2); }
.nd-store__views { margin-left: auto; }

/* 아주 좁은 화면(320px 이하)은 1열 */
@media (max-width: 340px) {
	.nd-stores { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   게시판 (/home/board : list · read · write · edit · reply · predel)
   - bd- 접두사, nadl-ui.css 의 토큰(--nd-*) 사용
   ===================================================================== */
.bd {
	max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; box-sizing: border-box;
	font-family: var(--nd-font); color: var(--nd-ink); font-size: 15px; line-height: 1.6;
}
.bd *, .bd *::before, .bd *::after { box-sizing: border-box; }
.bd p, .bd h1, .bd h2, .bd h3, .bd ul, .bd ol { margin: 0; }
.bd ul { list-style: none; padding: 0; }
.bd li { list-style: none; font-size: inherit; }
.bd img { max-width: 100%; }
.bd button { font-family: var(--nd-font); }
body.nd .bd a:link, body.nd .bd a:visited { color: inherit; text-decoration: none; }

/* 공통 아바타 */
.bd-avatar {
	position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
	background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 15px; font-weight: 700;
}
.bd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bd-avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.bd-avatar--lg { width: 48px; height: 48px; font-size: 17px; }

/* 버튼 */
.bd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
	font: 600 14px/1 var(--nd-font); white-space: nowrap; text-decoration: none !important;
}
.bd-btn--primary { background: var(--nd-brand); color: #fff !important; }
.bd-btn--primary:hover { background: var(--nd-brand-press); }
.bd-btn--ghost { background: #fff; border-color: var(--nd-line); color: var(--nd-ink) !important; }
.bd-btn--ghost:hover { background: var(--nd-bg); }
.bd-btn--danger { background: var(--nd-danger); color: #fff !important; }
.bd-btn--lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.bd-btn[disabled] { opacity: .5; cursor: default; }
.bd-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--nd-ink-2); cursor: pointer;
}
.bd-iconbtn:hover { background: var(--nd-bg); color: var(--nd-ink); }

/* ---------------------------------------------------------------------
   목록 (list.php)
   --------------------------------------------------------------------- */
.bd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bd-head__title { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.bd-head__sub { margin-top: 4px; font-size: 13px; color: var(--nd-ink-3); }
.bd-head__actions { display: none; }

.bd-search {
	display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; margin-bottom: 12px;
	border-radius: 14px; background: var(--nd-surface); border: 1px solid var(--nd-line); color: var(--nd-ink-3);
}
.bd-search:focus-within { border-color: var(--nd-brand); box-shadow: 0 0 0 3px var(--nd-brand-tint); }
.bd-search select {
	flex: none; height: 34px; padding: 0 6px; border: 0; border-radius: 8px; background: var(--nd-bg);
	font: 600 13px var(--nd-font); color: var(--nd-ink-2);
}
.bd-search input {
	flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent;
	font: 500 16px var(--nd-font); color: var(--nd-ink);
}
.bd-search button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--nd-ink); color: #fff; font: 700 13px var(--nd-font); cursor: pointer; }

.bd-chips { display: flex; gap: 8px; margin: 0 -16px 8px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.bd-chips::-webkit-scrollbar { display: none; }
body.nd .bd a.bd-chip:link, body.nd .bd a.bd-chip:visited {
	flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--nd-line); background: #fff; font-size: 13px; font-weight: 600; color: var(--nd-ink-2); white-space: nowrap;
}
body.nd .bd a.bd-chip.is-on { background: var(--nd-ink); border-color: var(--nd-ink); color: #fff; }

.bd-filter { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 13px; color: var(--nd-ink-2); }
body.nd .bd-filter a:link, body.nd .bd-filter a:visited { color: var(--nd-brand); font-weight: 600; }

.bd-feed { background: var(--nd-surface); border-radius: 18px; border: 1px solid var(--nd-line); overflow: hidden; }
.bd-item { position: relative; display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--nd-line); }
.bd-item:last-child { border-bottom: 0; }
.bd-item:hover { background: #FAFBFC; }
.bd-item__link { position: absolute; inset: 0; z-index: 1; }
.bd-item__body { flex: 1; min-width: 0; }
.bd-item__by { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; color: var(--nd-ink-3); }
.bd-item__by b { font-weight: 600; color: var(--nd-ink-2); }
.bd-badge {
	display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
	font-size: 11px; font-weight: 700; background: var(--nd-brand-tint); color: var(--nd-brand);
}
.bd-badge--notice { background: #FFF1E6; color: #C2410C; }
.bd-item__title {
	font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--nd-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bd-item__excerpt {
	margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--nd-ink-2);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bd-item__stats { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--nd-ink-3); }
.bd-item__stats span { display: inline-flex; align-items: center; gap: 4px; }
.bd-item__thumb { flex: none; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--nd-bg); }
.bd-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bd-empty { padding: 56px 16px; text-align: center; color: var(--nd-ink-2); font-size: 14px; }
.bd-empty strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--nd-ink); }

.bd-pager { display: flex; justify-content: center; gap: 4px; margin: 24px 0 0; flex-wrap: wrap; }
body.nd .bd-pager a:link, body.nd .bd-pager a:visited, .bd-pager span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 6px;
	border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--nd-ink-2); font-variant-numeric: tabular-nums;
}
body.nd .bd-pager a:hover { background: var(--nd-surface); }
.bd-pager .is-current { background: var(--nd-ink); color: #fff; }

.bd-fab {
	position: fixed; z-index: 700; right: 16px; bottom: calc(var(--nd-tabbar-h) + var(--nd-safe-b) + 16px);
	display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 20px; border-radius: 999px;
	background: var(--nd-brand); color: #fff !important; box-shadow: var(--nd-shadow-float);
	font: 700 15px var(--nd-font); text-decoration: none !important;
}
@media (min-width: 960px) {
	.bd-head__actions { display: flex; gap: 8px; }
	.bd-fab { display: none; }
}

/* ---------------------------------------------------------------------
   글 보기 (read.php)
   --------------------------------------------------------------------- */
.bd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--nd-ink-3); }
body.nd .bd-crumbs a:link, body.nd .bd-crumbs a:visited { color: var(--nd-ink-2); font-weight: 600; }
.bd-post { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 20px; padding: 24px 20px; }
.bd-post__title { font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.bd-post__author { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--nd-line); }
.bd-post__who { flex: 1; min-width: 0; }
.bd-post__name { font-size: 15px; font-weight: 700; }
.bd-post__meta { margin-top: 2px; font-size: 13px; color: var(--nd-ink-3); }
.bd-post__meta > * + * { margin-left: 8px; }
body.nd .bd a.bd-pill:link, body.nd .bd a.bd-pill:visited {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px;
	background: var(--nd-bg); font-size: 12px; font-weight: 600; color: var(--nd-ink-2);
}
.bd-pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* 본문 */
.bd-content { font-size: 16px; line-height: 1.8; color: var(--nd-ink); overflow-wrap: anywhere; }
.bd-content p { margin: 0 0 1em; }
.bd-content img { height: auto !important; border-radius: 12px; }
.bd-content table { display: block; max-width: 100%; overflow-x: auto; }
.bd-content iframe { max-width: 100%; }
.bd-figure { margin: 16px 0 0; }
.bd-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.bd-deleted { padding: 20px; border-radius: 12px; background: var(--nd-bg); color: var(--nd-ink-3); text-align: center; }

/* 갤러리 */
.bd-gallery { position: relative; margin: 20px -20px 0; }
.bd-gallery__track { display: flex; gap: 8px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bd-gallery__track::-webkit-scrollbar { display: none; }
.bd-gallery__item {
	flex: 0 0 82%; max-width: 520px; aspect-ratio: 4 / 3; scroll-snap-align: center; padding: 0; border: 0; cursor: zoom-in;
	border-radius: 14px; overflow: hidden; background: var(--nd-bg);
}
.bd-gallery__item:only-child { flex-basis: 100%; max-width: none; }
.bd-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-gallery__nav {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--nd-ink); cursor: pointer;
	box-shadow: 0 2px 10px rgba(26,34,54,.18); transition: opacity .15s;
}
.bd-gallery__nav:hover { background: #fff; }
.bd-gallery__nav--prev { left: 28px; }
.bd-gallery__nav--next { right: 28px; }
.bd-gallery__nav[disabled] { opacity: 0; pointer-events: none; }
.bd-gallery__count {
	position: absolute; top: 10px; right: 30px; padding: 4px 10px; border-radius: 999px;
	background: rgba(26,34,54,.7); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* 영상 */
.bd-video {
	position: relative; display: block; width: 100%; margin-top: 20px; aspect-ratio: 16 / 9; padding: 0; border: 0;
	border-radius: 14px; overflow: hidden; background: #000; cursor: pointer;
}
.bd-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.bd-video__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
	background: rgba(255,255,255,.95); color: var(--nd-ink);
}
.bd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.nd .bd-links a:link, body.nd .bd-links a:visited {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px;
	background: var(--nd-bg); font-size: 13px; font-weight: 600; color: var(--nd-ink);
}

/* 해시태그 */
.bd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.bd-tag { display: inline-flex; height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 13px; font-weight: 600; }

/* 반응 바 */
.bd-actions { display: flex; align-items: center; gap: 4px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--nd-line); }
.bd-act {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px;
	background: transparent; color: var(--nd-ink-2); font: 600 14px var(--nd-font); cursor: pointer; text-decoration: none !important;
	white-space: nowrap; flex: none;
}
.bd-act:hover { background: var(--nd-bg); }
.bd-act.is-on { color: #E03131; }
.bd-act.is-on svg { fill: currentColor; }
.bd-act--end { margin-left: auto; }
.bd-act.is-pop svg { animation: bd-pop .3s ease-out; }
@keyframes bd-pop { 50% { transform: scale(1.3); } }

/* 메뉴 (details) */
.bd-menu { position: relative; }
.bd-menu > summary { list-style: none; }
.bd-menu > summary::-webkit-details-marker { display: none; }
.bd-menu__panel {
	position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 168px; padding: 6px;
	background: #fff; border: 1px solid var(--nd-line); border-radius: 14px; box-shadow: var(--nd-shadow-float);
}
body.nd .bd-menu__panel a:link, body.nd .bd-menu__panel a:visited, .bd-menu__panel button {
	display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
	background: none; font: 500 14px var(--nd-font); color: var(--nd-ink); text-align: left; cursor: pointer;
}
.bd-menu__panel a:hover, .bd-menu__panel button:hover { background: var(--nd-bg); }
body.nd .bd-menu__panel .is-danger, .bd-menu__panel .is-danger { color: var(--nd-danger); }
.bd-menu__sep { height: 1px; margin: 4px 6px; background: var(--nd-line); }

/* 이전/다음 */
.bd-nav { display: grid; gap: 8px; margin-top: 16px; }
body.nd .bd-nav a:link, body.nd .bd-nav a:visited {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
	background: var(--nd-surface); border: 1px solid var(--nd-line); color: var(--nd-ink);
}
.bd-nav small { flex: none; font-size: 12px; font-weight: 700; color: var(--nd-ink-3); }
.bd-nav span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.bd-bottom-actions { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

/* 섹션 제목 */
.bd-section { margin-top: 24px; }
.bd-section__title { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.bd-section__title small { font-size: 14px; font-weight: 700; color: var(--nd-brand); }

/* 댓글 작성 */
.bd-composer {
	display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-radius: 16px;
	background: var(--nd-surface); border: 1px solid var(--nd-line);
}
.bd-composer:focus-within { border-color: var(--nd-brand); box-shadow: 0 0 0 3px var(--nd-brand-tint); }
.bd-composer__field { flex: 1; min-width: 0; }
.bd-composer textarea {
	display: block; width: 100%; min-height: 40px; max-height: 240px; padding: 9px 2px; border: 0 !important; outline: 0; resize: none;
	background: transparent; box-shadow: none !important; font: 500 15px/1.5 var(--nd-font); color: var(--nd-ink);
}
.bd-composer__tools { display: flex; align-items: center; gap: 2px; }
.bd-composer__send { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--nd-brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bd-composer__preview { position: relative; display: none; width: 88px; height: 88px; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; }
.bd-composer__preview.is-on { display: block; }
.bd-composer__preview img { width: 100%; height: 100%; object-fit: cover; }
.bd-composer__preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(26,34,54,.75); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bd-login-hint {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px;
	background: var(--nd-surface); border: 1px dashed var(--nd-line); font-size: 14px; color: var(--nd-ink-2);
}

/* 댓글 목록 */
.bd-comments { margin-top: 16px; }
.bd-comment { display: flex; gap: 10px; padding: 12px 0; }
.bd-comment + .bd-comment { border-top: 1px solid var(--nd-line); }
.bd-comment--d1 { margin-left: 28px; }
.bd-comment--d2 { margin-left: 56px; }
.bd-comment--d3, .bd-comment--d4 { margin-left: 72px; }
.bd-comment--reply { position: relative; border-top: 0 !important; padding-top: 4px; }
.bd-comment__body { flex: 1; min-width: 0; }
.bd-comment__head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bd-comment__head b { font-weight: 700; color: var(--nd-ink); }
.bd-comment__head time { color: var(--nd-ink-3); }
.bd-comment__quote {
	margin-top: 4px; padding: 4px 10px; border-left: 3px solid var(--nd-line); font-size: 12px; color: var(--nd-ink-3);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bd-comment__text { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--nd-ink); overflow-wrap: anywhere; }
.bd-comment__img { margin-top: 8px; max-width: 240px; border-radius: 12px; overflow: hidden; }
.bd-comment__img img { display: block; width: 100%; }
.bd-comment__actions { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 -8px; }
.bd-comment__actions .bd-act { height: 30px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
.bd-comment__actions .bd-menu { margin-left: auto; }

/* 답글(게시물) */
.bd-replies { display: grid; gap: 12px; }
.bd-replypost { padding: 18px; border-radius: 18px; background: var(--nd-surface); border: 1px solid var(--nd-line); }
.bd-replypost__head { display: flex; align-items: center; gap: 10px; }
.bd-replypost__title { margin: 12px 0 6px; font-size: 16px; font-weight: 700; }
.bd-replypost .bd-content { font-size: 15px; }
.bd-replypost .bd-actions { margin-top: 12px; }
.bd-replypost .bd-composer { margin-top: 8px; padding: 8px 10px; }

/* 다이얼로그 */
.bd-dialog { width: min(92vw, 480px); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--nd-shadow-float); font-family: var(--nd-font); color: var(--nd-ink); }
.bd-dialog::backdrop { background: rgba(26,34,54,.45); }
.bd-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 4px 20px; }
.bd-dialog__title { font-size: 17px; font-weight: 800; }
.bd-dialog__body { padding: 8px 20px 4px; }
.bd-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.bd-dialog textarea {
	display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--nd-line); border-radius: 12px;
	font: 500 15px/1.6 var(--nd-font); color: var(--nd-ink); resize: vertical; outline: 0;
}
.bd-dialog textarea:focus { border-color: var(--nd-brand); box-shadow: 0 0 0 3px var(--nd-brand-tint); }
.bd-dialog__quote { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--nd-bg); font-size: 13px; color: var(--nd-ink-2); max-height: 96px; overflow: auto; }
.bd-userlist { max-height: 50vh; overflow: auto; }
.bd-userlist button {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 12px; background: none;
	font: 500 15px var(--nd-font); color: var(--nd-ink); text-align: left; cursor: pointer;
}
.bd-userlist button:hover { background: var(--nd-bg); }
.bd-userlist small { color: var(--nd-ink-3); font-size: 12px; }
.bd-lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10,12,18,.94); }
.bd-lightbox::backdrop { background: transparent; }
.bd-lightbox img { position: absolute; inset: 0; margin: auto; max-width: 94vw; max-height: 86vh; object-fit: contain; }
.bd-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bd-lightbox__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
}
.bd-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.bd-lightbox__nav--prev { left: 16px; }
.bd-lightbox__nav--next { right: 16px; }
.bd-lightbox__nav[hidden] { display: none; }
.bd-lightbox__count {
	position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
	color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.bd-lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; padding: 0 20px; text-align: center; color: #fff; font-size: 14px; }
.bd-videobox { width: min(96vw, 900px); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; }
.bd-videobox::backdrop { background: rgba(10,12,18,.85); }
.bd-videobox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.bd-videobox .bd-lightbox__close { top: 8px; right: 8px; }

/* ---------------------------------------------------------------------
   글쓰기 · 수정 · 답글 (write.php / edit.php / reply.php)
   --------------------------------------------------------------------- */
.bd-form { display: grid; gap: 12px; }
.bd-card { padding: 20px; border-radius: 18px; background: var(--nd-surface); border: 1px solid var(--nd-line); }
.bd-card__title { margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.bd-card__hint { margin: -6px 0 12px; font-size: 13px; color: var(--nd-ink-3); }
.bd-field { display: block; margin: 0 0 14px; }
.bd-field:last-child { margin-bottom: 0; }
.bd-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }
.bd-label em { font-style: normal; color: var(--nd-danger); }
.bd-input, .bd-select {
	display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--nd-line); border-radius: 12px; background: #fff;
	font: 500 16px var(--nd-font); color: var(--nd-ink); outline: 0; box-shadow: none;
}
.bd-select {
	padding-right: 40px; -webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B7486' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.bd-input:focus, .bd-select:focus { border-color: var(--nd-brand); box-shadow: 0 0 0 3px var(--nd-brand-tint); }
.bd-input[readonly] { background: var(--nd-bg); color: var(--nd-ink-2); }
.bd-input--title { height: 56px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.bd-grid2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .bd-grid2 { grid-template-columns: 1fr 1fr; } }
.bd-editor textarea { display: block; width: 100%; min-height: 280px; padding: 14px; border: 1px solid var(--nd-line); border-radius: 12px; font: 500 16px/1.7 var(--nd-font); color: var(--nd-ink); resize: vertical; }
.bd-editor .cke { border-radius: 12px; overflow: hidden; border-color: var(--nd-line) !important; }

/* 해시태그 입력 */
.bd-tagbox {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 10px;
	border: 1px solid var(--nd-line); border-radius: 12px; background: #fff; cursor: text;
}
.bd-tagbox:focus-within { border-color: var(--nd-brand); box-shadow: 0 0 0 3px var(--nd-brand-tint); }
.bd-tagbox .bd-tag { gap: 4px; padding-right: 6px; }
.bd-tagbox .bd-tag button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bd-tagbox input { flex: 1; min-width: 120px; height: 34px; border: 0 !important; outline: 0; box-shadow: none !important; font: 500 15px var(--nd-font); background: transparent; }

/* 사진 업로드 타일 */
.bd-uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bd-upload {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	aspect-ratio: 4 / 3; border: 1.5px dashed #C9D1DC; border-radius: 14px; background: var(--nd-bg); cursor: pointer;
	overflow: hidden; color: var(--nd-ink-3); font-size: 13px; font-weight: 600; text-align: center;
}
.bd-upload:hover { border-color: var(--nd-brand); color: var(--nd-brand); }
.bd-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bd-upload img.bd-upload__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-upload.has-file { border-style: solid; border-color: transparent; }
.bd-upload__tag { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(26,34,54,.7); color: #fff; font-size: 11px; font-weight: 700; }
.bd-upload__del { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--nd-ink-2); }
.bd-gal-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--nd-line); }
.bd-gal-row:first-child { border-top: 0; }
.bd-gal-row .bd-upload { aspect-ratio: 1; }
.bd-gal-existing { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bd-gal-existing img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.bd-add {
	display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; margin-top: 8px;
	border: 1.5px dashed #C9D1DC; border-radius: 12px; background: transparent; color: var(--nd-ink-2); font: 700 14px var(--nd-font); cursor: pointer;
}
.bd-add:hover { border-color: var(--nd-brand); color: var(--nd-brand); }

/* 하단 고정 버튼 */
.bd-submitbar {
	position: sticky; bottom: calc(var(--nd-tabbar-h) + var(--nd-safe-b)); z-index: 20; display: flex; gap: 8px;
	margin: 4px -16px 0; padding: 12px 16px; background: linear-gradient(to top, var(--nd-bg) 75%, rgba(243,245,248,0));
}
.bd-submitbar .bd-btn--primary { flex: 1; }
@media (min-width: 960px) { .bd-submitbar { bottom: 0; } }

/* 확인 화면 (predel.php) */
.bd-confirm { max-width: 420px; margin: 40px auto; padding: 28px 24px; text-align: center; border-radius: 20px; background: var(--nd-surface); border: 1px solid var(--nd-line); }
.bd-confirm__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 18px; background: #FFF1F1; color: var(--nd-danger); }
.bd-confirm h1 { font-size: 20px; font-weight: 800; }
.bd-confirm p { margin-top: 6px; font-size: 14px; color: var(--nd-ink-2); }
.bd-confirm__quote { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--nd-bg); font-size: 14px; font-weight: 600; color: var(--nd-ink); }
.bd-confirm .bd-btn { flex: 1; }
.bd-confirm__btns { display: flex; gap: 8px; margin-top: 20px; }

@media (min-width: 640px) {
	.bd { padding-top: 32px; }
	.bd-post { padding: 32px; }
	.bd-gallery { margin: 20px -32px 0; }
	.bd-gallery__track { padding: 0 32px; }
	.bd-gallery__item { flex-basis: 70%; }
	.bd-gallery__nav--prev { left: 40px; }
	.bd-gallery__nav--next { right: 40px; }
	.bd-post__title { font-size: 30px; }
}

/* =====================================================================
   메인 (mall_main.html) : hm- 접두사
   ===================================================================== */
.hm { max-width: 1120px; margin: 0 auto; padding: 16px 16px 56px; box-sizing: border-box; font-family: var(--nd-font); color: var(--nd-ink); }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm h1, .hm h2, .hm h3, .hm p, .hm ol, .hm blockquote { margin: 0; }
.hm ol { padding: 0; list-style: none; }
.hm li { list-style: none; font-size: inherit; }
body.nd .hm a:link, body.nd .hm a:visited { color: inherit; text-decoration: none; }
.hm-btn { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }

/* 히어로 */
.hm-hero { display: grid; gap: 20px; align-items: center; margin-bottom: 28px; }
.hm-hero__art { order: -1; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--nd-brand-tint); }
.hm-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-hero__title { font-size: 34px; line-height: 1.22; font-weight: 800; letter-spacing: -0.04em; word-break: keep-all; }
.hm-hero__desc { margin-top: 12px; max-width: 34em; font-size: 16px; line-height: 1.7; color: var(--nd-ink-2); }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
body.nd .hm a.hm-hero__biz:link, body.nd .hm a.hm-hero__biz:visited {
	display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--nd-ink-3);
}
body.nd .hm a.hm-hero__biz:hover { color: var(--nd-brand); }

/* 바로가기 */
.hm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 8px; margin-bottom: 20px; padding: 16px 8px; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 20px; }
.hm-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; border-radius: 14px; text-align: center; }
.hm-tile:hover { background: var(--nd-bg); }
.hm-tile__ico { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 18px; color: var(--c); }
.hm-tile__ico::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c); opacity: .12; }
.hm-tile__ico svg { position: relative; }
.hm-tile__label { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--nd-ink); word-break: keep-all; }

/* 카테고리 칩 */
.hm-chips { display: flex; gap: 8px; margin: 0 -16px 8px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.hm-chips::-webkit-scrollbar { display: none; }
body.nd .hm a.hm-chip:link, body.nd .hm a.hm-chip:visited {
	flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--nd-line); background: #fff; font-size: 14px; font-weight: 600; color: var(--nd-ink-2); white-space: nowrap;
}
body.nd .hm a.hm-chip.is-on { background: var(--nd-ink); border-color: var(--nd-ink); color: #fff; }

/* 섹션 */
.hm-section { margin-top: 28px; min-width: 0; }
.hm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-section__head > div { min-width: 0; }
.hm-section__title { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.hm-section__sub { display: none; font-size: 13px; color: var(--nd-ink-3); }
body.nd .hm a.hm-more:link, body.nd .hm a.hm-more:visited { flex: none; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }
body.nd .hm a.hm-more:hover { color: var(--nd-brand); }

/* 추천 멤버 */
.hm-members { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
.hm-members::-webkit-scrollbar { display: none; }
.hm-member { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.hm-member__cover { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--nd-brand-tint); }
.hm-member__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hm-member:hover .hm-member__cover img { transform: scale(1.04); }
.hm-member__who { display: flex; align-items: center; gap: 8px; }
.hm-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 12px; font-weight: 700; }
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-member__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.hm-member__intro { font-size: 13px; line-height: 1.5; color: var(--nd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 2단 */
.hm-cols { display: grid; gap: 0 32px; }

/* 새로 올라온 글 */
.hm-recent { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 20px; overflow: hidden; }
.hm-recent li + li { border-top: 1px solid var(--nd-line); }
.hm-recent__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hm-recent__item:hover { background: #FAFBFC; }
.hm-recent__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-recent__title { font-size: 15px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-recent__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--nd-ink-3); }
.hm-stat { display: inline-flex; align-items: center; gap: 3px; }
.hm-recent__thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--nd-bg); }
.hm-recent__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-empty { padding: 40px 16px; text-align: center; font-size: 14px; color: var(--nd-ink-2); }

/* 오늘의 이야기 */
.hm-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.hm-pick { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hm-pick__img { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--nd-bg); }
.hm-pick__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hm-pick:hover .hm-pick__img img { transform: scale(1.04); }
.hm-pick__body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.hm-pick__title { font-size: 15px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-pick__text { font-size: 13px; line-height: 1.55; color: var(--nd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-pick__meta { font-size: 12px; color: var(--nd-ink-3); }
.hm-pick__meta span { margin-left: 8px; }
.hm-pick--text .hm-pick__body { height: 100%; padding: 16px; border-radius: 16px; background: var(--nd-brand-tint); }
.hm-pick--text .hm-pick__text { -webkit-line-clamp: 5; color: var(--nd-ink); }

/* 가장 많이 읽힌 뜨락 글 */
.hm-top__list { display: grid; gap: 10px; }
.hm-top__item a {
	position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px;
	border-radius: 18px; background: var(--nd-surface); border: 1px solid var(--nd-line);
}
.hm-top__item a:hover { border-color: #C9D1DC; }
.hm-top__rank {
	flex: none; width: 28px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.04em;
	color: var(--nd-brand); font-variant-numeric: tabular-nums;
}
.hm-top__img { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--nd-bg); }
.hm-top__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hm-top__item a:hover .hm-top__img img { transform: scale(1.05); }
.hm-top__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-top__title { font-size: 15px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-top__text { font-size: 13px; line-height: 1.6; color: var(--nd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-top__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--nd-ink-3); }
.hm-top__like { color: #E03131; font-weight: 700; }

/* 1위 : 크게 */
.hm-top__item.is-first a { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: var(--nd-brand-tint); border-color: transparent; }
.hm-top__item.is-first .hm-top__img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.hm-top__item.is-first .hm-top__body { padding: 16px 18px 18px; gap: 6px; }
.hm-top__item.is-first .hm-top__title { font-size: 18px; }
.hm-top__item.is-first .hm-top__rank {
	position: absolute; left: 12px; top: 12px; z-index: 1; width: auto; min-width: 36px; height: 36px; padding: 0 10px;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
	background: var(--nd-brand); color: #fff; font-size: 18px;
}
.hm-top__item.is-first.no-img .hm-top__body { padding-top: 60px; }

/* 안내 */
.hm-guide { margin-top: 36px; }
.hm-guide__grid { display: grid; gap: 12px; margin-top: 14px; }
.hm-guide__item { padding: 20px; border-radius: 20px; background: var(--nd-surface); border: 1px solid var(--nd-line); }
.hm-guide__ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 16px; color: var(--c); }
.hm-guide__ico::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c); opacity: .12; }
.hm-guide__ico svg { position: relative; }
.hm-guide__item h3 { margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.hm-guide__item p { font-size: 14px; line-height: 1.65; color: var(--nd-ink-2); }
.hm-guide__motto { margin-top: 20px; text-align: center; font-size: 13px; color: var(--nd-ink-3); }

@media (min-width: 720px) {
	.hm-hero { grid-template-columns: 1fr 1fr; gap: 40px; margin: 16px 0 32px; }
	.hm-hero__art { order: 0; aspect-ratio: 5 / 4; }
	.hm-hero__title { font-size: 46px; }
	.hm-tiles { grid-template-columns: repeat(8, 1fr); }
	.hm-section__sub { display: block; }
	.hm-guide__grid { grid-template-columns: repeat(3, 1fr); }
	.hm-member { flex-basis: 240px; }
	.hm-members { margin: 0; padding: 0 0 6px; scroll-padding: 0; }
	.hm-top__list { grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(4, auto); }
	.hm-top__item.is-first { grid-row: 1 / span 4; }
}
@media (min-width: 1024px) {
	.hm { padding-top: 24px; }
	.hm-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
	.hm-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hm-hero__title { font-size: 54px; }
}

/* =====================================================================
   나의 뜨락 글쓰기 (mobile/mbi_write.php) : tw- 접두사
   ===================================================================== */
.tw-photohead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tw-count { font-size: 13px; font-weight: 700; color: var(--nd-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px; border-radius: 16px;
	transition: background-color .15s, box-shadow .15s;
}
.tw-grid.is-drop { background: var(--nd-brand-tint); box-shadow: 0 0 0 2px var(--nd-brand); }
.tw-thumb, .tw-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.tw-thumb { padding: 0; border: 0; background: var(--nd-bg); cursor: pointer; }
.tw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tw-thumb.is-cover { grid-column: span 2; grid-row: span 2; }
.tw-thumb.is-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--nd-brand); pointer-events: none; }
.tw-thumb.is-drag { opacity: .4; }
.tw-thumb.is-over { outline: 3px dashed var(--nd-brand); outline-offset: -3px; }
.tw-thumb__no {
	position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(26,34,54,.72); color: #fff; font: 700 11px/1 var(--nd-font);
}
.tw-thumb.is-cover .tw-thumb__no { background: var(--nd-brand); }
.tw-thumb__x {
	position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: rgba(26,34,54,.72); color: #fff;
}
.tw-thumb__x:hover { background: var(--nd-danger); }
.tw-add {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
	border: 1.5px dashed #C9D1DC; background: var(--nd-bg); color: var(--nd-ink-3); font-size: 13px; font-weight: 700;
}
.tw-add:hover { border-color: var(--nd-brand); color: var(--nd-brand); }
.tw-add[hidden] { display: none; }
.tw-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tw-grid .tw-add:first-child:last-child { grid-column: 1 / -1; aspect-ratio: auto; height: 160px; }
.tw-drop-hint { display: none; margin: 10px 0 0; font-size: 12px; color: var(--nd-ink-3); }
@media (hover: hover) and (pointer: fine) { .tw-drop-hint { display: block; } }
@media (min-width: 640px) { .tw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bd-input.is-bad { border-color: var(--nd-danger); box-shadow: 0 0 0 3px #FFE3E3; }
.tw-yt { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-yt img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.tw-sheet { width: min(94vw, 460px); }
.tw-sheet__img { background: #0f1218; aspect-ratio: 4 / 3; }
.tw-sheet__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tw-sheet__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 20px 0; }
.tw-sheet__acts .bd-btn[disabled] { opacity: .4; }

.tw-progress { width: min(90vw, 360px); }
.tw-progress__title { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.tw-bar { height: 8px; border-radius: 999px; background: var(--nd-bg); overflow: hidden; }
.tw-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--nd-brand); transition: width .2s; }
.tw-progress__pct { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--nd-ink-2); font-variant-numeric: tabular-nums; }

/* 공지 팝업 (tboard_write.php 등) */
.tw-popup { width: min(92vw, 440px); }
.tw-popup__body { max-height: 60vh; overflow: auto; padding: 4px 20px 8px; font-size: 15px; line-height: 1.7; }
.tw-popup__body img { max-width: 100%; height: auto; border-radius: 10px; }
.tw-popup .bd-dialog__foot { justify-content: space-between; }

/* =====================================================================
   멤버 개인 페이지 (p_profile.php) : pf- 접두사
   ===================================================================== */
.pf { max-width: 880px; margin: 0 auto; padding: 0 0 56px; box-sizing: border-box; font-family: var(--nd-font); color: var(--nd-ink); }
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
.pf h1, .pf h2, .pf p, .pf ol, .pf ul, .pf dl, .pf dd { margin: 0; }
.pf ol, .pf ul { padding: 0; list-style: none; }
.pf li { list-style: none; }
body.nd .pf a:link, body.nd .pf a:visited { color: inherit; text-decoration: none; }
.pf-ico { flex: none; }
.pf-btn { height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }

/* 머리 */
.pf-head { padding: 0 16px 20px; background: var(--nd-surface); border-bottom: 1px solid var(--nd-line); }
.pf-cover {
	position: relative; margin: 0 -16px; aspect-ratio: 16 / 7;
	background: linear-gradient(135deg, #DDF3F6, #EEF1F6 60%, #F6EFE6) center / cover no-repeat;
}
body.nd .pf a.pf-cover__empty {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
	background: rgba(255,255,255,.92); font-size: 14px; font-weight: 700; color: var(--nd-ink); white-space: nowrap;
}
.pf-id { display: flex; align-items: flex-end; gap: 14px; margin-top: -40px; position: relative; }
.pf-avatar {
	flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
	width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; background: var(--nd-brand-tint);
	color: var(--nd-brand); font-size: 36px; font-weight: 800; box-shadow: 0 2px 10px rgba(26,34,54,.12);
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar--md { width: 56px; height: 56px; border-width: 0; font-size: 20px; box-shadow: none; }
.pf-avatar--sm { width: 40px; height: 40px; border-width: 0; font-size: 15px; box-shadow: none; }
.pf-id__text { min-width: 0; padding-bottom: 4px; }
body.nd .pf a.pf-belong { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 12px; font-weight: 700; }
.pf-name { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.pf-handle { margin-top: 2px; font-size: 14px; color: var(--nd-ink-3); }
.pf-handle span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px 3px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.pf-title { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--nd-ink-2); word-break: keep-all; }

.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--nd-line); border-radius: 16px; overflow: hidden; }
.pf-stats > div { padding: 12px 8px; text-align: center; }
.pf-stats > div + div { border-left: 1px solid var(--nd-line); }
.pf-stats dt { font-size: 13px; color: var(--nd-ink-3); }
.pf-stats dd { margin-top: 2px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-actions > * { flex: 1 1 0; min-width: 0; }
.pf-follow { background: var(--nd-brand); color: #fff; border-color: var(--nd-brand); }
.pf-follow:hover { background: var(--nd-brand-press); }
.pf-follow .pf-follow__on { display: none; }
.pf-follow.is-on { background: #fff; color: var(--nd-ink); border-color: var(--nd-line); }
.pf-follow.is-on .pf-follow__on { display: inline-flex; align-items: center; gap: 6px; }
.pf-follow.is-on .pf-follow__off { display: none; }
.pf-follow__off { display: inline-flex; align-items: center; gap: 6px; }

/* 탭 */
.pf-tabs {
	position: sticky; top: var(--nd-header-h); z-index: 5; display: flex; gap: 2px; padding: 0 8px;
	background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--nd-line);
	overflow-x: auto; scrollbar-width: none;
}
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs button {
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 14px;
	border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
	font: 700 15px/1 var(--nd-font); color: var(--nd-ink-3);
}
.pf-tabs button[aria-selected="true"] { color: var(--nd-ink); border-bottom-color: var(--nd-ink); }
.pf-tabs__n { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: var(--nd-bg); font-size: 12px; color: var(--nd-ink-2); font-variant-numeric: tabular-nums; }
.pf-tabs button[aria-selected="true"] .pf-tabs__n { background: var(--nd-ink); color: #fff; }

/* 패널 */
.pf-panel { padding: 16px; }
.pf-panel[hidden] { display: none; }
.pf-card { padding: 20px; margin-bottom: 12px; border-radius: 20px; background: var(--nd-surface); border: 1px solid var(--nd-line); }
.pf-card__title { margin-bottom: 14px !important; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.pf-card__title small { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--nd-ink-3); }
.pf-about { font-size: 16px; line-height: 1.8; color: var(--nd-ink); word-break: keep-all; overflow-wrap: anywhere; }
.pf-about--sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--nd-line); color: var(--nd-ink-2); font-size: 15px; }
.pf-empty { font-size: 15px; color: var(--nd-ink-2); }
.pf-empty--big { padding: 56px 16px; text-align: center; background: var(--nd-surface); border: 1px dashed #C9D1DC; border-radius: 20px; }
.pf-note { display: flex; align-items: center; gap: 6px; margin-bottom: 12px !important; padding: 10px 14px; border-radius: 12px; background: var(--nd-brand-tint); font-size: 14px; color: var(--nd-ink); }
body.nd .pf .pf-note a { margin-left: auto; color: var(--nd-brand); font-weight: 700; }

/* 연락처 */
.pf-info li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; font-size: 16px; line-height: 1.5; }
.pf-info li + li { border-top: 1px solid var(--nd-line); }
.pf-info .pf-ico { color: var(--nd-brand); }
.pf-info span, .pf-info a:not(.pf-info__go) { min-width: 0; overflow-wrap: anywhere; }
body.nd .pf .pf-info a:not(.pf-info__go) { color: var(--nd-ink); font-weight: 600; }
body.nd .pf a.pf-info__go { flex: none; margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--nd-line); font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }

/* 스태프 · 팔로워 */
.pf-staffs, .pf-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; }
.pf-staff, .pf-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pf-staff .pf-avatar { width: 72px; height: 72px; font-size: 26px; }
.pf-staff__name, .pf-person__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.pf-staff__intro { font-size: 12px; line-height: 1.4; color: var(--nd-ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.pf-staff:hover .pf-staff__name, a.pf-person:hover .pf-person__name { color: var(--nd-brand); }

/* 공간 사진 줄 */
.pf-strip { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.pf-strip::-webkit-scrollbar { display: none; }
.pf-strip__item { flex: 0 0 72%; max-width: 320px; aspect-ratio: 10 / 7; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--nd-bg); scroll-snap-align: start; cursor: zoom-in; }
.pf-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 태그 */
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
body.nd .pf a.pf-tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 14px; font-weight: 700; }
.pf-tag small { font-size: 12px; color: var(--nd-ink-3); font-weight: 600; }

/* 게시글 */
.pf-posts { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 20px; overflow: hidden; }
.pf-posts li + li { border-top: 1px solid var(--nd-line); }
.pf-post { display: flex; gap: 14px; padding: 16px; }
.pf-post:hover { background: #FAFBFC; }
.pf-post__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pf-post__title { font-size: 17px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-post__text { font-size: 14px; line-height: 1.55; color: var(--nd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-post__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 13px; color: var(--nd-ink-3); }
.pf-post__meta span { display: inline-flex; align-items: center; gap: 4px; }
.pf-post__thumb { flex: none; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--nd-bg); }
.pf-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.nd .pf a.pf-more { display: flex; align-items: center; justify-content: center; gap: 4px; height: 48px; margin-top: 12px; border-radius: 14px; background: var(--nd-surface); border: 1px solid var(--nd-line); font-size: 15px; font-weight: 700; }

/* 상품 */
.pf-goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.pf-good { position: relative; min-width: 0; }
.pf-good > a { display: flex; flex-direction: column; gap: 6px; }
.pf-good__img { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--nd-bg); border: 1px solid var(--nd-line); }
.pf-good__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pf-good > a:hover .pf-good__img img { transform: scale(1.04); }
.pf-good__name { font-size: 15px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-good__price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-good__price small { margin-left: 2px; font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }
body.nd .pf a.pf-good__edit { position: absolute; right: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(26,34,54,.75); color: #fff; font-size: 12px; font-weight: 700; }

/* 갤러리 */
.pf-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: 16px; overflow: hidden; }
.pf-gallery__item { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--nd-bg); overflow: hidden; cursor: zoom-in; }
.pf-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-gallery__item.is-locked { cursor: default; }
.pf-gallery__item.is-locked img { filter: blur(10px); transform: scale(1.2); image-rendering: auto; }
.pf-gallery__item.is-locked > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(26,34,54,.25); }

/* 영상 */
.pf-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.pf-video { min-width: 0; }
.pf-video__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0f1218; cursor: pointer; }
.pf-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.pf-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--nd-ink); padding-left: 3px; }
.pf-video__kind { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; }
body.nd .pf a.pf-video__title { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; font-weight: 600; }

/* 후기 */
.pf-reviews { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 20px; overflow: hidden; }
.pf-review { display: flex; gap: 12px; padding: 16px; }
.pf-review + .pf-review { border-top: 1px solid var(--nd-line); }
.pf-review.is-reply { padding-left: 52px; background: #FAFBFC; }
.pf-review__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-review__head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.pf-review__head time { font-size: 12px; color: var(--nd-ink-3); }
.pf-review__title { font-size: 15px; font-weight: 700; }
.pf-review__text { font-size: 15px; line-height: 1.65; color: var(--nd-ink-2); }
.pf-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pf-pager a, .pf-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 700; border: 1px solid var(--nd-line); background: #fff; }
.pf-pager .is-current { background: var(--nd-ink); color: #fff; border-color: var(--nd-ink); }

/* 사진 · 영상 창 */
.pf-lightbox, .pf-videobox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; background: rgba(10,12,18,.94); }
.pf-lightbox[open], .pf-videobox[open] { display: flex; align-items: center; justify-content: center; }
.pf-lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.pf-videobox iframe { width: min(100%, 960px); aspect-ratio: 16 / 9; border: 0; }
.pf-lightbox__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.pf-lightbox__btn:hover { background: rgba(255,255,255,.26); }
.pf-lightbox__btn[hidden] { display: none; }
.pf-lightbox__close { top: 16px; right: 16px; }
.pf-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pf-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pf-lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #fff; font-size: 14px; }

/* 메시지 · 카테고리 */
#pfMemo { width: 100%; min-height: 140px; padding: 12px 14px; border: 1px solid var(--nd-line); border-radius: 12px; font: 15px/1.6 var(--nd-font); resize: vertical; }
.pf-cat { display: flex; align-items: center; gap: 6px; padding: 8px 0; }
.pf-cat + .pf-cat { border-top: 1px solid var(--nd-line); }
.pf-cat .bd-input { flex: 1; min-width: 0; height: 40px; }
.pf-cat__n { flex: none; font-size: 12px; color: var(--nd-ink-3); }
body.nd a.pf-cat__del { color: var(--nd-danger); }
.pf-cat--new { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--nd-line) !important; }

@media (min-width: 720px) {
	.pf { padding-top: 16px; }
	.pf-head { border: 1px solid var(--nd-line); border-radius: 24px; padding: 0 28px 24px; overflow: hidden; }
	.pf-cover { margin: 0 -28px; aspect-ratio: auto; height: 280px; }
	.pf-id { margin-top: -52px; gap: 18px; }
	.pf-avatar { width: 120px; height: 120px; font-size: 44px; }
	.pf-avatar--md { width: 56px; height: 56px; font-size: 20px; }
	.pf-avatar--sm { width: 40px; height: 40px; font-size: 15px; }
	.pf-staff .pf-avatar { width: 72px; height: 72px; }
	.pf-name { font-size: 30px; }
	.pf-actions > * { flex: 0 0 auto; }
	.pf-tabs { margin-top: 12px; border-radius: 16px; border: 1px solid var(--nd-line); padding: 0 12px; }
	.pf-panel { padding: 16px 0; }
	.pf-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pf-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pf-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.pf-strip__item { flex-basis: 40%; }
}

/* =====================================================================
   로그인 (login_skin.php) : lg- 접두사
   ===================================================================== */
.lg { display: flex; justify-content: center; padding: 24px 16px 64px; font-family: var(--nd-font); color: var(--nd-ink); box-sizing: border-box; }
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg p, .lg h1 { margin: 0; }
.lg-card { width: 100%; max-width: 420px; }
.lg-title { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.lg-sub { margin-top: 6px !important; font-size: 15px; color: var(--nd-ink-2); }
.lg-back { margin-top: 16px !important; padding: 10px 14px; border-radius: 12px; background: var(--nd-brand-tint); font-size: 14px; color: var(--nd-ink); }
.lg form { margin-top: 24px; }

/* ID / 이메일 선택 */
.lg-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--nd-bg); }
.lg-seg__opt { position: relative; margin: 0; }
.lg-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.lg-seg__opt span {
	display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px;
	font-size: 15px; font-weight: 700; color: var(--nd-ink-2); cursor: pointer; transition: background-color .15s, color .15s;
}
.lg-seg__opt input:checked + span { background: #fff; color: var(--nd-ink); box-shadow: 0 1px 3px rgba(26,34,54,.12); }
.lg-seg__opt input:focus-visible + span { outline: 2px solid var(--nd-brand); outline-offset: 2px; }

/* 입력칸 */
.lg-fields { display: grid; gap: 14px; margin-top: 18px; transition: opacity .15s; }
.lg-fields.is-loading { opacity: .4; pointer-events: none; }
.lg-field { position: relative; display: block; margin: 0; }
.lg-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--nd-ink); }
.lg-input {
	display: block; width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--nd-line); border-radius: 14px;
	background: #fff; font: 500 16px/1 var(--nd-font); color: var(--nd-ink); transition: border-color .15s, box-shadow .15s;
}
.lg-input::placeholder { color: #A0A8B6; font-style: normal; font-weight: 400; }
.lg-input:focus { outline: 0; border-color: var(--nd-brand); box-shadow: 0 0 0 4px rgba(0,122,148,.14); }
.lg-input.is-bad { border-color: var(--nd-danger); box-shadow: 0 0 0 4px #FFE3E3; }
.lg-field--pass .lg-input { padding-right: 76px; }
.lg-eye {
	position: absolute; right: 8px; bottom: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px;
	background: var(--nd-bg); font: 700 13px/1 var(--nd-font); color: var(--nd-ink-2); cursor: pointer;
}
.lg-eye:hover { color: var(--nd-ink); }
.lg-caps, .lg-error { margin-top: 10px !important; font-size: 14px; font-weight: 600; }
.lg-caps { color: #B35C00; }
.lg-error { color: var(--nd-danger); }
.lg-caps[hidden], .lg-error[hidden] { display: none; }

.lg-submit {
	display: block; width: 100%; height: 54px; margin-top: 20px; border: 0; border-radius: 14px;
	background: var(--nd-brand); color: #fff; font: 800 17px/1 var(--nd-font); cursor: pointer; transition: background-color .15s;
}
.lg-submit:hover { background: var(--nd-brand-press); }
.lg-submit[disabled] { opacity: .7; cursor: default; }

/* 소셜 로그인 */
.lg-or { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; font-size: 13px; color: var(--nd-ink-3); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--nd-line); }
.lg-sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lg-sns img { max-width: 100%; height: auto; }

/* 아래 링크 */
.lg-links { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nd-line); text-align: center; font-size: 15px; color: var(--nd-ink-2); }
body.nd .lg-links a:link, body.nd .lg-links a:visited { color: var(--nd-brand); font-weight: 700; text-decoration: none; }
body.nd .lg-links a.lg-find:link, body.nd .lg-links a.lg-find:visited { display: inline-block; margin-top: 12px; padding: 6px 4px; color: var(--nd-ink-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
	.lg { padding-top: 56px; }
	.lg-card { padding: 40px 40px 32px; border-radius: 24px; background: var(--nd-surface); border: 1px solid var(--nd-line); box-shadow: 0 8px 32px rgba(26,34,54,.06); }
}

/* =====================================================================
   회원가입 (join_skin.php) : jn- 접두사 (나머지는 lg- 부품 사용)
   ===================================================================== */
.jn-kind { display: inline-block; margin-bottom: 10px !important; padding: 4px 10px; border-radius: 999px; background: var(--nd-bg); font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }
.jn-kind.is-biz { background: #FFF4E0; color: #8A4B00; }
.jn-steps { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.jn-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--nd-bg); font-size: 14px; font-weight: 600; color: var(--nd-ink-3); list-style: none; }
.jn-steps b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #D5DBE3; color: #fff; font-size: 12px; }
.jn-steps li.is-now { background: var(--nd-brand-tint); color: var(--nd-ink); }
.jn-steps li.is-now b { background: var(--nd-brand); }
.jn-msg { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--nd-ink-3); }
.jn-msg.is-ok { color: #0B7A4B; font-weight: 600; }
.jn-msg.is-bad { color: var(--nd-danger); font-weight: 600; }
.lg-input.is-ok { border-color: #12B886; }

/* =====================================================================
   파트너 정보 관리 (support/admin_partners_modify.php) : pm- 접두사 (폼 부품은 bd-)
   ===================================================================== */
.pm-body { margin: 0; background: var(--nd-bg); }
.pm-top {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px;
	background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--nd-line); font-family: var(--nd-font);
}
.pm-top__logo img { display: block; }
.pm-top__title { padding-left: 12px; border-left: 1px solid var(--nd-line); font-size: 14px; font-weight: 700; color: var(--nd-ink-2); }
.pm-top__nav { margin-left: auto; display: flex; gap: 4px; }
body.nd .pm-top__nav a:link, body.nd .pm-top__nav a:visited { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--nd-ink-2); text-decoration: none; }
body.nd .pm-top__nav a:hover { background: var(--nd-bg); color: var(--nd-ink); }

.pm .bd-submitbar { bottom: 0; }
.pm .bd-grid2 { margin-bottom: 14px; }
.pm .bd-grid2 .bd-field { margin-bottom: 0; }
.pm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pm-head__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 22px; font-weight: 800; }
.pm-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-head__title { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.pm-head__sub { font-size: 14px; color: var(--nd-ink-3); }
.pm-head__sub b { color: var(--nd-ink); }
body.nd .pm a.pm-head__view { display: none; margin-left: auto; height: 40px; padding: 0 14px; font-size: 14px; }
.pm-badge { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF4E0; color: #8A4B00; font-size: 12px; font-weight: 700; }
.pm-muted { font-weight: 500; color: var(--nd-ink-3); }
.pm-help { margin-top: 8px !important; font-size: 13px; line-height: 1.6; color: var(--nd-ink-3); }
body.nd .pm .pm-help a { color: var(--nd-brand); font-weight: 700; }
.pm-row { display: flex; gap: 8px; }
.pm-row .bd-input { flex: 1; min-width: 0; }
.pm-sns { flex: 0 0 132px; }
.pm-rowbtn { flex: none; height: 48px; padding: 0 16px; border-radius: 12px; }
.pm-textarea { height: auto; min-height: 76px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.pm .bd-input.is-bad { border-color: var(--nd-danger); box-shadow: 0 0 0 3px #FFE3E3; }
.pm .lg-error { margin: 0 !important; }

/* 전화번호 국가 선택 (intlTelInput) */
.pm .iti { display: block; width: 100%; }
.pm .iti input.pm-tel { padding-left: 52px; }

/* 이미지 */
.pm-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.pm-img { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-img--wide { grid-column: 1 / -1; }
.pm-img__label { font-size: 13px; font-weight: 700; color: var(--nd-ink-2); }
.pm-img__box { position: relative; display: block; cursor: pointer; }
.pm-img__box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pm-img__pic {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
	background: var(--nd-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' stroke='%23A0A8B6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E") center no-repeat;
	border: 1.5px dashed #C9D1DC;
}
.pm-img__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-img__pic:has(img) { border-style: solid; border-color: var(--nd-line); }
.pm-img--round .pm-img__pic { width: 120px; aspect-ratio: 1; border-radius: 50%; }
.pm-img--wide .pm-img__pic { aspect-ratio: 16 / 7; }
.pm-img__btn { position: absolute; right: 8px; bottom: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(26,34,54,.78); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.pm-img--round .pm-img__btn { right: auto; left: 72px; }
.pm-img__box:focus-within .pm-img__pic { box-shadow: 0 0 0 3px var(--nd-brand-tint); border-color: var(--nd-brand); }
.pm-del { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nd-danger); cursor: pointer; }

@media (min-width: 640px) {
	body.nd .pm a.pm-head__view { display: inline-flex; }
	.pm-images { grid-template-columns: 160px minmax(0, 300px); }
	.pm-img--wide { grid-column: 1 / -1; }
}

/* =====================================================================
   파트너 센터 헤더 (support/admin_header.php) : ah- 접두사 (나머지는 nd-header / nd-drawer)
   ===================================================================== */
.ah-body { margin: 0; }
.ah-header .nd-header__inner { gap: 16px; }
.ah-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--nd-brand-tint); color: var(--nd-brand); font: 700 12px/1.2 var(--nd-font); white-space: nowrap; }
.ah-btn { height: 36px; padding: 0 12px; font-size: 14px; gap: 6px; }
.ah-content { min-height: calc(100vh - var(--nd-header-h)); }
/* 서랍은 PC 에서도 메뉴 버튼으로 열 수 있게 */
.ah-header .nd-header__mobile-only { display: inline-flex !important; }
#ahDrawer { font-family: var(--nd-font); }

/* 내 페이지 : 왼쪽에서 열리는 패널 (기존 inc_lmenu.html 메뉴를 그대로 넣음) */
.ah-mobile-only { display: inline-flex; }
@media (min-width: 960px) { .ah-mobile-only { display: none; } }
dialog.ah-side {
	position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); max-width: none; height: 100%; max-height: none;
	margin: 0; padding: 0 0 24px; border: 0; border-radius: 0 20px 20px 0; background: var(--nd-surface);
	overflow-y: auto; font-family: var(--nd-font); color: var(--nd-ink); box-shadow: var(--nd-shadow-float);
}
dialog.ah-side[open] { animation: ah-slide-left .22s cubic-bezier(.2,.8,.2,1); }
@keyframes ah-slide-left { from { transform: translateX(-100%); } to { transform: none; } }
body.nd a.ah-side__me:link, body.nd a.ah-side__me:visited {
	display: flex; align-items: center; gap: 12px; margin: 12px 16px; padding: 12px 14px; border-radius: 14px;
	background: var(--nd-brand-tint); color: var(--nd-ink); text-decoration: none;
}
.ah-side__me > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-side__me b { font-size: 15px; }
.ah-side__me small { font-size: 12px; color: var(--nd-ink-2); }
.ah-side__me .nd-ico { color: var(--nd-ink-3); }
.ah-side__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--nd-brand); font-weight: 800; }

/* 기존 메뉴 마크업(Falcon · Bootstrap)을 읽기 쉬운 목록으로 */
.ah-lmenu { padding: 4px 12px; font-size: 15px; }
.ah-lmenu ul, .ah-lmenu ol { list-style: none; margin: 0; padding: 0; }
.ah-lmenu li { list-style: none; margin: 0; }
.ah-lmenu ul ul { margin: 2px 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--nd-line); }
.ah-lmenu hr, .ah-lmenu .navbar-vertical-divider, .ah-lmenu .toggle-icon-wrapper, .ah-lmenu .navbar-brand, .ah-lmenu .badge { display: none !important; }
.ah-lmenu .row { display: block; margin: 0; }
.ah-lmenu .navbar-vertical-label, .ah-lmenu h3, .ah-lmenu h4, .ah-lmenu h5, .ah-lmenu h6, .ah-lmenu .nav-title {
	margin: 18px 4px 6px !important; padding: 0 !important; font-size: 12px !important; font-weight: 700 !important;
	letter-spacing: .02em; text-transform: none; color: var(--nd-ink-3) !important;
}
body.nd .ah-lmenu a:link, body.nd .ah-lmenu a:visited {
	position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
	color: var(--nd-ink); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none;
}
body.nd .ah-lmenu a:hover { background: var(--nd-bg); color: var(--nd-ink); }
body.nd .ah-lmenu ul ul a:link, body.nd .ah-lmenu ul ul a:visited { min-height: 40px; font-size: 14px; font-weight: 500; color: var(--nd-ink-2); }
body.nd .ah-lmenu a.is-here { background: var(--nd-brand-tint); color: var(--nd-brand) !important; }
.ah-lmenu a > div, .ah-lmenu .nav-link > div { display: flex; align-items: center; gap: 10px; width: 100%; }
.ah-lmenu .nav-link-icon, .ah-lmenu .nav-link-icon svg, .ah-lmenu a > i, .ah-lmenu a .fas, .ah-lmenu a .far, .ah-lmenu a .fa { width: 20px; flex: none; text-align: center; color: var(--nd-ink-3); }
.ah-lmenu .nav-link-text { padding-left: 0 !important; }
.ah-lmenu img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.ah-lmenu .dropdown-indicator::after, .ah-lmenu [data-bs-toggle="collapse"]::after, .ah-lmenu [data-toggle="collapse"]::after {
	content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--nd-ink-3); border-bottom: 2px solid var(--nd-ink-3);
	transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; flex: none;
}
.ah-lmenu [aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ah-lmenu .collapse:not(.show) { display: none; }

/* 개인 페이지 추가 (Relax25 스킨 : p_profile_relax25.php) */
.pf-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: var(--nd-ink-3); }
.pf-areas span { padding: 4px 10px; border-radius: 999px; background: var(--nd-bg); border: 1px solid var(--nd-line); font-size: 13px; font-weight: 600; color: var(--nd-ink-2); }
.pf-handle .pf-badge-on::before { display: none !important; }
.pf-badge-on { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #E6F7EF; color: #0B7A4B; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.pf-actions > .pf-btn--icon { flex: 0 0 44px; width: 44px; padding: 0; }
.pf-row { display: flex; gap: 8px; }
.pf-row .bd-input { flex: 1; min-width: 0; }
.pf-rowbtn { flex: none; height: 48px; padding: 0 16px; border-radius: 12px; }
.pf-muted { font-size: 13px; color: var(--nd-ink-3); }
.pf-lockcard { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; padding: 24px 20px; border-radius: 20px; background: var(--nd-brand-tint); text-align: center; }
.pf-lockcard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--nd-ink); word-break: keep-all; }
.pf-lockcard__ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--nd-brand); }
.pf-note__btn { margin-left: auto; border: 0; background: none; color: var(--nd-brand); font: 700 14px/1 var(--nd-font); cursor: pointer; }
.pf-info__sns { width: 22px; height: 22px; flex: none; }
.pf-guide { display: grid; gap: 14px; background: var(--nd-bg); }
.pf-guide h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--nd-brand); }
.pf-guide p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--nd-ink-2); }
.pf-code-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--nd-bg); font-size: 14px; line-height: 1.6; }
.pf-quickfab { right: 16px; bottom: calc(var(--nd-tabbar-h) + 20px + env(safe-area-inset-bottom, 0px)); }
.pf-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 20px 20px; }
body.nd .pf-quick a:link, body.nd .pf-quick a:visited { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--nd-bg); color: var(--nd-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.pf-quick img { width: 28px; height: 28px; }
.pf-share { display: grid; gap: 8px; padding: 4px 20px 20px; }
.pf-share > * { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--nd-line); border-radius: 12px; background: #fff; font: 700 15px/1 var(--nd-font); color: var(--nd-ink); cursor: pointer; text-decoration: none; }
body.nd .pf-share a:link, body.nd .pf-share a:visited { color: var(--nd-ink); }

/* 예약 */
.rv-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.rv-step__title b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--nd-brand); color: #fff; font-size: 13px; }
.rv-group { margin: 14px 0 8px !important; font-size: 13px; font-weight: 700; color: var(--nd-ink-3); }
.rv-group:first-of-type { margin-top: 0 !important; }
.rv-items { display: grid; gap: 10px; }
.rv-item { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; border: 2px solid var(--nd-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.rv-item input { position: absolute; opacity: 0; pointer-events: none; }
.rv-item:has(input:checked) { border-color: var(--nd-brand); background: var(--nd-brand-tint); }
.rv-item:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0,122,148,.25); }
.rv-item__img { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--nd-bg); }
.rv-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-item__name { font-size: 16px; font-weight: 700; line-height: 1.35; }
.rv-item__price { font-size: 18px; font-weight: 800; color: var(--nd-ink); }
.rv-item__price small { font-size: 12px; font-weight: 700; color: var(--nd-ink-2); }
body.nd a.rv-item__more:link, body.nd a.rv-item__more:visited { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--nd-ink-3); text-decoration: underline; text-underline-offset: 3px; }
.rv-item__check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C9D1DC; color: transparent; }
.rv-item:has(input:checked) .rv-item__check { background: var(--nd-brand); border-color: var(--nd-brand); color: #fff; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip { position: relative; margin: 0; cursor: pointer; }
.rv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rv-chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--nd-line); background: #fff; font-size: 15px; font-weight: 600; color: var(--nd-ink-2); }
.rv-chip input:checked + span { border-color: var(--nd-brand); background: var(--nd-brand); color: #fff; }
.rv-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,122,148,.25); }
.rv-when { display: grid; gap: 14px; }
.rv-when .bd-label { display: inline-flex; align-items: center; gap: 6px; }
.rv-submit { margin: 4px 0 12px; }
.rv-pay summary { font-size: 15px; font-weight: 800; cursor: pointer; }
.rv-pay ol { margin: 12px 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.rv-pay li { list-style: decimal; margin-bottom: 6px; }
.rv-pay p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--nd-ink-2); }
.pf-tabs button.is-book { color: var(--nd-brand); }
@media (min-width: 720px) {
	.rv-items { grid-template-columns: 1fr 1fr; }
	.rv-when { grid-template-columns: 1fr 1fr; }
	.pf-guide { grid-template-columns: 1fr 1fr; }
}

/* 이벤트 코드 창 : 적용 중 안내 · 초기화 버튼 */
button.pf-badge-on { border: 0; cursor: pointer; font-family: var(--nd-font); }
button.pf-badge-on:hover { background: #D3F2E3; }
.pf-code-on { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px !important; padding: 12px 14px; border-radius: 12px; background: #E6F7EF; color: #0B5C3A; font-size: 14px; line-height: 1.55; }
.pf-code-on .pf-ico { margin-top: 2px; }
.pf-code-foot { gap: 8px; }
.pf-code-reset { margin-right: auto; color: var(--nd-danger) !important; }
.bd-dialog, .bd-dialog *, .bd-dialog *::before, .bd-dialog *::after { box-sizing: border-box; }

/* 상품 : Sold out (approval_date = 0) */
.pf-good__img, .rv-item__img { position: relative; }
.pf-sold { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 999px; background: rgba(26,34,54,.82); color: #fff; font: 800 13px/1 var(--nd-font); letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.rv-item__img .pf-sold { padding: 4px 8px; font-size: 11px; }
.pf-good.is-sold .pf-good__img img, .rv-item.is-sold .rv-item__img img { filter: grayscale(1); opacity: .55; }
.pf-good.is-sold .pf-good__name, .pf-good.is-sold .pf-good__price { color: var(--nd-ink-3); }
.pf-good.is-sold .pf-good__price { text-decoration: line-through; }
.rv-item.is-sold { cursor: not-allowed; background: var(--nd-bg); }
.rv-item.is-sold .rv-item__name, .rv-item.is-sold .rv-item__price { color: var(--nd-ink-3); }
.rv-item.is-sold .rv-item__check { visibility: hidden; }

/* =====================================================================
   상품 상세 (mall_goods_relax25.php) : gd- 접두사
   ===================================================================== */
.gd { max-width: 1080px; margin: 0 auto; padding: 8px 16px 120px; box-sizing: border-box; font-family: var(--nd-font); color: var(--nd-ink); }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd h1, .gd h2, .gd p, .gd ol, .gd ul, .gd figure { margin: 0; }
.gd ol, .gd ul { padding: 0; }
.gd li { list-style: none; }
body.nd .gd a:link, body.nd .gd a:visited { color: inherit; }
.gd-crumb { font-size: 13px; color: var(--nd-ink-3); margin-bottom: 10px; overflow-x: auto; white-space: nowrap; }
.gd-top { display: grid; gap: 20px; }

/* 사진 */
.gd-main { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--nd-bg); cursor: zoom-in; }
.gd-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #EEF1F6, #DDF3F6); }
.gd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gd-thumbs::-webkit-scrollbar { display: none; }
.gd-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--nd-bg); cursor: pointer; }
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-thumb.is-on { border-color: var(--nd-brand); }

/* 정보 */
.gd-name { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.gd-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gd-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; }
.gd-rate b { margin-left: 4px; }
.gd-rate span { color: var(--nd-ink-3); }
.gd-star { fill: #DDE2E8; }
.gd-star.is-on { fill: #F5A524; }
.gd-share { margin-left: auto; height: 32px; padding: 0 12px; border: 1px solid var(--nd-line); border-radius: 999px; background: #fff; font: 600 13px/1 var(--nd-font); color: var(--nd-ink-2); cursor: pointer; }
.gd-summary { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--nd-ink-2); }
.gd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: 16px; padding: 16px 0; border-top: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line); }
.gd-price__v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gd-price__c { font-size: 15px; font-weight: 700; color: var(--nd-ink-2); }
.gd-price__o { font-size: 13px; color: var(--nd-ink-3); }
.gd-tag { padding: 3px 8px; border-radius: 6px; background: var(--nd-bg); font-size: 12px; font-weight: 700; color: var(--nd-ink-2); }
.gd-tag--warn { background: #FFE3E3; color: #C92A2A; }

.gd-block { margin-top: 20px; }
.gd-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.gd-hint { margin: -4px 0 10px !important; font-size: 13px; color: var(--nd-ink-3); }
.gd-field { display: block; margin-bottom: 12px; }
.gd-row { display: flex; gap: 8px; }
.gd-row .bd-input { flex: 1; min-width: 0; }
.gd-rowbtn { flex: none; height: 48px; padding: 0 16px; border-radius: 12px; }
.gd-time { flex: 0 0 120px !important; }
.gd-endline { font-size: 13px; color: var(--nd-ink-3); }
.gd-endline input { width: 64px; border: 0; background: none; font: 700 14px/1 var(--nd-font); color: var(--nd-ink); }

/* 담당자 */
.gd-staffs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gd-staffs::-webkit-scrollbar { display: none; }
.gd-staff { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; cursor: pointer; }
.gd-staff input { position: absolute; opacity: 0; pointer-events: none; }
.gd-staff__img { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid transparent; background: var(--nd-brand-tint); color: var(--nd-brand); font-size: 22px; font-weight: 800; }
.gd-staff__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gd-staff__n { position: absolute; right: -4px; top: -4px; display: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--nd-brand); color: #fff; font-size: 12px; border: 2px solid #fff; }
.gd-staff.is-on .gd-staff__img { border-color: var(--nd-brand); }
.gd-staff.is-on .gd-staff__n { display: inline-flex; }
.gd-staff__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.gd-staff input:focus-visible + .gd-staff__img { box-shadow: 0 0 0 3px rgba(0,122,148,.25); }

/* 이용 시간 */
.gd-durs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gd-dur { position: relative; cursor: pointer; }
.gd-dur input { position: absolute; opacity: 0; pointer-events: none; }
.gd-dur span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--nd-line); border-radius: 14px; background: #fff; }
.gd-dur b { font-size: 16px; }
.gd-dur em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--nd-ink-2); font-variant-numeric: tabular-nums; }
.gd-dur input:checked + span { border-color: var(--nd-brand); background: var(--nd-brand-tint); }
.gd-dur input:checked + span em { color: var(--nd-brand); }
.gd-dur input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,122,148,.25); }

/* 옵션 · 지역 · 수량 */
.gd-opt { display: grid; gap: 6px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.gd-opt select { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--nd-line); border-radius: 12px; background: #fff; font: 500 15px/1 var(--nd-font); color: var(--nd-ink); }
.gd-fee { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 16px !important; padding: 12px 14px; border-radius: 12px; background: var(--nd-bg); font-size: 14px; }
.gd-fee span { color: var(--nd-ink-3); }
.gd-fee em { font-style: normal; color: var(--nd-ink-2); }
.gd-qtyrow { display: flex; align-items: center; justify-content: space-between; }
.gd-qtyrow .gd-label { margin: 0; }
.gd-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--nd-line); border-radius: 12px; overflow: hidden; }
.gd-qty button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--nd-ink); }
.gd-qty input { width: 52px; height: 44px; border: 0; border-left: 1px solid var(--nd-line); border-right: 1px solid var(--nd-line); text-align: center; font: 700 16px/1 var(--nd-font); -moz-appearance: textfield; }
.gd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.gd-qty1 { font-size: 16px; }

/* 합계 · 다음 */
.gd-buy { margin-top: 20px; }
.gd-total { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px !important; }
.gd-total span { margin-right: auto; font-size: 15px; font-weight: 700; color: var(--nd-ink-2); }
.gd-total b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gd-next[disabled], .gd-bar .lg-submit[disabled] { background: #A0A8B6; cursor: not-allowed; }
body.nd .gd a.gd-admin { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--nd-ink-3); }

/* 아래 영역 */
.gd-tabs { position: sticky; top: var(--nd-header-h); z-index: 5; display: flex; margin: 36px -16px 0; padding: 0 8px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--nd-line); }
body.nd .gd-tabs a:link, body.nd .gd-tabs a:visited { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; height: 50px; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 700; color: var(--nd-ink-3); text-decoration: none; }
body.nd .gd-tabs a.is-on { color: var(--nd-ink); border-bottom-color: var(--nd-ink); }
.gd-tabs span { font-size: 12px; color: var(--nd-ink-3); }
.gd-sec { padding-top: 28px; scroll-margin-top: calc(var(--nd-header-h) + 60px); }
.gd-sec__title { margin-bottom: 14px !important; font-size: 20px; font-weight: 800; }
.gd-sec__title span { color: var(--nd-brand); }
.gd-content { max-width: 860px; margin: 0 auto; }
.gd-content img { max-width: 100%; height: auto; display: block; margin: 0 auto 8px; }
.gd-content figure { margin-bottom: 16px; text-align: center; }
.gd-content figcaption { padding: 8px; font-size: 14px; color: var(--nd-ink-2); }
.gd-story { margin: 16px 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.gd-story img, .gd-story iframe, .gd-story table { max-width: 100% !important; height: auto; }

.gd-pay { margin-bottom: 10px; padding: 0 18px; border: 1px solid var(--nd-line); border-radius: 16px; background: #fff; }
.gd-pay summary { padding: 16px 0; font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.gd-pay summary::-webkit-details-marker { display: none; }
.gd-pay summary::after { content: "+"; color: var(--nd-ink-3); font-weight: 600; }
.gd-pay[open] summary::after { content: "−"; }
.gd-pay > *:not(summary) { margin-bottom: 14px !important; font-size: 15px; line-height: 1.75; color: var(--nd-ink); }
.gd-pay ol { padding-left: 20px; }
.gd-pay ol li { list-style: decimal; margin-bottom: 8px; }
.gd-pay ul li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.gd-pay ul li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--nd-ink-3); }
.gd-warn { color: #C92A2A !important; font-size: 14px !important; }
.gd-contact { padding: 10px 14px; border-radius: 12px; background: var(--nd-bg); font-size: 14px !important; }

/* 후기 */
.gd-rvhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gd-rvhead .gd-sec__title { margin-bottom: 4px !important; }
.gd-rvavg { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.gd-rvavg b { margin-left: 6px; font-size: 18px; }
.gd-rvavg span { color: var(--nd-ink-3); }
.gd-btn { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.gd-reviews { border-top: 1px solid var(--nd-line); }
.gd-review { padding: 18px 0; border-bottom: 1px solid var(--nd-line); }
.gd-review__head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.gd-review__who { font-weight: 800; font-size: 14px; }
.gd-review__head time { margin-left: auto; color: var(--nd-ink-3); }
.gd-review__body { display: flex; gap: 12px; margin-top: 10px; }
.gd-review__text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gd-review__text.is-open { display: block; }
.gd-review__text.is-del { color: var(--nd-ink-3); }
.gd-review__text img { max-width: 100%; height: auto; }
.gd-review__img { flex: none; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.gd-review__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-review__more { margin-top: 6px; padding: 0; border: 0; background: none; font: 700 13px/1.4 var(--nd-font); color: var(--nd-brand); cursor: pointer; }
.gd-review__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.gd-review__acts > button, body.nd .gd-review__acts > a:link, body.nd .gd-review__acts > a:visited { height: 32px; padding: 0 12px; border: 1px solid var(--nd-line); border-radius: 999px; background: #fff; font: 600 13px/30px var(--nd-font); color: var(--nd-ink-2); cursor: pointer; text-decoration: none; }
body.nd .gd-review__acts a.is-danger { color: var(--nd-danger); }
.gd-myrate { display: inline-flex; padding: 0 6px; border-radius: 999px; background: var(--nd-bg); }
.gd-myrate button { width: 26px; height: 32px; border: 0; background: none; font-size: 17px; color: #C9D1DC; cursor: pointer; }
.gd-myrate button.is-on { color: #F5A524; }

/* 후기 쓰기 */
.gd-write { width: min(94vw, 520px); }
.gd-starpick { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; margin-bottom: 14px; }
.gd-starpick input { position: absolute; opacity: 0; pointer-events: none; }
.gd-starpick label { font-size: 32px; line-height: 1; color: #DDE2E8; cursor: pointer; }
.gd-starpick input:checked ~ label, .gd-starpick label:hover, .gd-starpick label:hover ~ label { color: #F5A524; }
.gd-starpick input:checked + label { color: #F5A524; }
.gd-starpick__t { order: -1; margin-left: 12px; font-size: 14px; font-weight: 700; color: var(--nd-ink-2); }
.gd-ta { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }

/* 잠긴 상품 */
.gd-locked { margin: 48px auto; max-width: 420px; padding: 32px 24px; border-radius: 20px; background: var(--nd-brand-tint); text-align: center; }
.gd-locked p { margin-bottom: 16px !important; font-size: 16px; line-height: 1.6; }

/* 휴대폰 고정 구매 바 */
.gd-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nd-tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid var(--nd-line); transform: translateY(120%); transition: transform .2s; font-family: var(--nd-font); }
.gd-bar.is-on { transform: none; }
.gd-bar p { flex: 1; min-width: 0; margin: 0; }
.gd-bar p span { display: block; font-size: 12px; color: var(--nd-ink-3); }
.gd-bar p b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gd-bar .lg-submit { flex: 0 0 52%; height: 48px; margin: 0; font-size: 16px; }

@media (min-width: 860px) {
	.gd-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
	.gd-media { position: sticky; top: calc(var(--nd-header-h) + 16px); }
	.gd-name { font-size: 28px; }
	.gd-bar { display: none; }
	.gd-tabs { margin: 48px 0 0; border-radius: 16px 16px 0 0; }
}
.gd-staff__add { font-size: 11px; font-weight: 700; color: #E03131; white-space: nowrap; }

/* 상품 상세 : 옵션 금액 · 금액 내역 */
.gd-opt > span { display: flex; justify-content: space-between; gap: 8px; }
.gd-opt__p { font-style: normal; font-weight: 700; color: var(--nd-brand); font-variant-numeric: tabular-nums; }
.gd-opt__p.is-minus { color: #E03131; }
.gd-break { margin: -4px 0 12px !important; padding: 10px 14px !important; border-radius: 12px; background: var(--nd-bg); font-size: 13px; }
.gd-break:empty { display: none; }
.gd-break li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--nd-ink-2); }
.gd-break li b { font-weight: 700; color: var(--nd-ink); font-variant-numeric: tabular-nums; }
.gd-opt__name { display: flex; justify-content: space-between; gap: 8px; }
.gd-opt__ctl { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-weight: 500; }
.gd-opt__ctl select { flex: 1 1 100%; }
.gd-opt__ctl input[type=radio], .gd-opt__ctl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--nd-brand); vertical-align: -3px; }

/* =====================================================================
   주문자 정보 (userinfo_relax25.php) : od- 접두사
   ===================================================================== */
.od { max-width: 1080px; margin: 0 auto; padding: 12px 16px 120px; box-sizing: border-box; font-family: var(--nd-font); color: var(--nd-ink); }
.od *, .od *::before, .od *::after { box-sizing: border-box; }
.od h2, .od p, .od ul, .od ol, .od dl, .od dd { margin: 0; }
.od ul, .od ol { padding: 0; } .od li { list-style: none; }
.od-steps { display: flex; gap: 6px; margin-bottom: 16px !important; }
.od-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; background: var(--nd-bg); font-size: 13px; font-weight: 700; color: var(--nd-ink-3); }
.od-steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 11px; }
.od-steps li.is-on { background: var(--nd-brand); color: #fff; }
.od-steps li.is-on b { color: var(--nd-brand); }
.od-steps li.is-done b { background: var(--nd-brand-tint); color: var(--nd-brand); }
.od-grid { display: grid; gap: 16px; }
.od-main { display: grid; gap: 12px; min-width: 0; }
.od-card { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--nd-line); }
.od-title { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px !important; font-size: 18px; font-weight: 800; }
.od-title small { font-size: 14px; color: var(--nd-brand); }
.od-title--row { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.od-title--row h2 { font-size: 18px; font-weight: 800; }
.od-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--nd-ink-2); cursor: pointer; }
.od-check input { width: 18px; height: 18px; accent-color: var(--nd-brand); }

/* 상품 */
.od-items { display: grid; gap: 14px; }
.od-item { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--nd-line); }
.od-item:last-child { padding-bottom: 0; border-bottom: 0; }
.od-item__img { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--nd-bg); }
.od-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-item__body { flex: 1; min-width: 0; }
.od-item__name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.od-chip { margin-top: 4px; padding: 3px 10px; border: 1px solid var(--nd-line); border-radius: 999px; background: #fff; font: 600 12px/1.4 var(--nd-font); color: var(--nd-ink-2); cursor: pointer; }
.od-lines { margin-top: 8px !important; font-size: 13px; }
.od-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--nd-ink-2); }
.od-lines dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-item__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px !important; font-size: 13px; color: var(--nd-ink-3); }
.od-item__sum b { font-size: 17px; color: var(--nd-ink); font-variant-numeric: tabular-nums; }
.od-item__sum small { font-size: 12px; color: var(--nd-ink-2); }

/* 입력 */
.od-fields { display: grid; gap: 12px; }
.od-fields[hidden] { display: none; }
.od-fields .bd-field { margin: 0; }
.od-fields .bd-field > .bd-input + .bd-input { margin-top: 6px; }
.od-req { font-style: normal; color: var(--nd-danger); }
.od-help { display: block; margin-top: 6px; font-size: 12px; color: var(--nd-ink-3); }
.od-row { display: flex; gap: 8px; align-items: center; }
.od-row > .bd-input { flex: 1; min-width: 0; }
.od-row + .bd-input { margin-top: 6px; }
.od-row--btns { flex-wrap: wrap; margin: 4px 0 12px; }
.od-zip { flex: 0 0 120px !important; }
.od-dash { color: var(--nd-ink-3); }
.od-sel { flex: 0 0 140px !important; }
.od-rowbtn { flex: none; height: 48px; padding: 0 16px; border-radius: 12px; }
.od-smallbtn { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.od-ta { height: auto; min-height: 64px; padding: 10px 14px; line-height: 1.6; resize: vertical; }
.od .iti { width: 100%; }
.od .iti input { width: 100%; }
.od-saved:empty { display: none; }
.od-saved { margin-bottom: 12px; padding: 12px; border-radius: 12px; background: var(--nd-bg); font-size: 14px; }

/* 서비스 · 결제 선택 */
.od-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.od-seg--wrap { flex-wrap: wrap; }
.od-seg label { flex: 1; position: relative; cursor: pointer; min-width: 120px; }
.od-seg input, .od-pay input { position: absolute; opacity: 0; pointer-events: none; }
.od-seg span, .od-pay span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--nd-line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; text-align: center; color: var(--nd-ink-2); }
.od-seg input:checked + span, .od-pay input:checked + span { border-color: var(--nd-brand); background: var(--nd-brand-tint); color: var(--nd-brand); }
.od-seg input:focus-visible + span, .od-pay input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,122,148,.25); }
.od-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.od-pay { position: relative; cursor: pointer; }
.od-bank { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--nd-line); }
.od-receipt { margin-top: 14px; }
.od-receipt .bd-label { margin-bottom: 8px; }
.od-shop { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--nd-bg); }
.od-shop[hidden] { display: none; }
.od-shop img { flex: none; width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.od-shop__name { font-size: 16px; font-weight: 800; }
.od-shop__addr { margin: 4px 0 8px !important; font-size: 14px; line-height: 1.5; color: var(--nd-ink-2); }
.od-shop .od-row--btns { margin: 0; }

/* 결제 금액 */
.od-sumlist > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--nd-ink-2); }
.od-sumlist dd { font-variant-numeric: tabular-nums; }
.od-total { display: flex; align-items: baseline; gap: 6px; margin-top: 10px !important; padding-top: 12px; border-top: 1px solid var(--nd-line); }
.od-total span { margin-right: auto; font-size: 15px; font-weight: 800; }
.od-total b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-usd { display: flex; justify-content: space-between; margin-top: 4px !important; font-size: 13px; color: var(--nd-ink-3); }
.od-usd b { color: var(--nd-ink-2); font-variant-numeric: tabular-nums; }
.od-deposit { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--nd-brand-tint); }
.od-deposit > div { display: flex; justify-content: space-between; padding: 2px 0; font-size: 14px; }
.od-deposit b { font-variant-numeric: tabular-nums; }
.od-deposit p { margin-top: 6px !important; font-size: 12px; color: var(--nd-ink-2); }
.od-sum .lg-submit { margin-top: 14px; }
body.nd .od a.od-prev { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: var(--nd-ink-3); }
.od-notice { padding: 14px 16px; border-radius: 16px; background: var(--nd-bg); font-size: 13px; line-height: 1.7; color: var(--nd-ink-2); }
.od-notice__t { font-weight: 800; color: var(--nd-ink); margin-bottom: 4px !important; }
.od-notice li { position: relative; padding-left: 12px; }
.od-notice li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; border-radius: 50%; background: var(--nd-ink-3); }

.od-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nd-tabbar-h) + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid var(--nd-line); font-family: var(--nd-font); }
.od-bar p { flex: 1; min-width: 0; margin: 0; }
.od-bar p span { display: block; font-size: 12px; color: var(--nd-ink-3); }
.od-bar p b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-bar .lg-submit { flex: 0 0 50%; height: 48px; margin: 0; font-size: 16px; }

@media (min-width: 720px) {
	.od-fields { grid-template-columns: 1fr 1fr; }
	.od-fields .od-full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.od-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
	.od-side { position: sticky; top: calc(var(--nd-header-h) + 16px); }
	.od-bar { display: none; }
}

/* 상품 상세 (linkoom 일반) : 장바구니 버튼 · 호스트 소개 */
.gd-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.gd-btns .lg-submit { margin: 0; }
.gd-cartbtn { height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.gd-bar .gd-cartbtn { flex: none; width: 52px; height: 48px; padding: 0; font-size: 20px; }
.gd-bar .gd-cartbtn + .lg-submit { flex: 0 0 42%; }
.gd-bar p { white-space: nowrap; }
.gd-host { padding: 16px; border: 1px solid var(--nd-line); border-radius: 16px; background: #fff; }
.gd-host__top { display: flex; align-items: center; gap: 12px; }
.gd-host__name { font-size: 16px; font-weight: 800; }
.gd-host__name small { font-size: 13px; font-weight: 600; color: var(--nd-ink-3); }
.gd-host__rate { margin-top: 2px; font-size: 13px; }
.gd-host__info { margin: 12px 0 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; }
.gd-host__info dt { color: var(--nd-ink-3); font-weight: 700; }
.gd-host__info dd { margin: 2px 0 0; font-weight: 600; }
.gd-host .pf-areas { margin-top: 10px; }
.gd-host__ph { margin-top: 10px; }
.gd-host__more { margin: 12px 0 0; }

/* 장바구니 (cart_skin.php) : ct- 접두사 (od- 주문 화면 스타일 함께 사용) */
.ct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ct-tabs button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--nd-line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; font-family: var(--nd-font); color: var(--nd-ink); }
.ct-tabs button[aria-selected="true"] { border-color: var(--nd-brand); background: var(--nd-brand-tint); }
.ct-tabs__ico { font-size: 24px; line-height: 1; }
.ct-tabs__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-tabs__t b { font-size: 16px; }
.ct-tabs__t small { font-size: 12px; color: var(--nd-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-tabs__n { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--nd-ink); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ct-tabs button[aria-selected="true"] .ct-tabs__n { background: var(--nd-brand); }
.ct-note { margin: 0 0 12px !important; padding: 12px 14px; border-radius: 14px; background: #FFF4E5; color: #8A4B00; font-size: 14px; line-height: 1.6; }
.ct-panel[hidden] { display: none; }
.ct-empty { padding: 48px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--nd-line); text-align: center; }
.ct-empty p { margin-bottom: 14px !important; font-size: 15px; color: var(--nd-ink-2); }
.ct-item { position: relative; align-items: flex-start; }
.ct-item > .ct-check { flex: none; width: 20px; height: 20px; margin-top: 28px; accent-color: var(--nd-brand); }
.ct-item.is-off .od-item__img, .ct-item.is-off .od-item__body { opacity: .45; }
.ct-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.ct-badge--0 { background: #E7F0FF; color: #1C5FD6; }
.ct-badge--1 { background: #E6F7EF; color: #0B7A4B; }
.ct-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ct-qty button { width: 36px; height: 36px; }
.ct-qty input { width: 48px; height: 36px; }
.ct-qty1 { font-size: 13px; color: var(--nd-ink-3); }
.ct-item__sum { margin-left: auto; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-item__sum small { font-size: 12px; color: var(--nd-ink-2); }
.ct-item__acts { display: flex; gap: 12px; margin-top: 8px; }
.ct-item__acts a, .ct-item__acts button { padding: 0; border: 0; background: none; font: 600 13px/1.4 var(--nd-font); color: var(--nd-ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
body.nd .ct-item__acts a:link, body.nd .ct-item__acts a:visited { color: var(--nd-ink-3); }
.ct-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
body.nd .ct-links a:link, body.nd .ct-links a:visited { color: var(--nd-ink-2); }
.ct .od-sum .lg-submit { margin-top: 14px; }
@media (max-width: 480px) { .ct-tabs__t small { display: none; } }

/* 장바구니 (cart_linkoom.php) : ct- */
.ct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ct-tabs button { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--nd-line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; font-family: var(--nd-font); color: var(--nd-ink); }
.ct-tabs button[aria-selected="true"] { border-color: var(--nd-brand); background: var(--nd-brand-tint); }
.ct-tabs__ico { font-size: 24px; line-height: 1; }
.ct-tabs__t { display: flex; flex-direction: column; min-width: 0; }
.ct-tabs__t b { font-size: 16px; }
.ct-tabs__t small { font-size: 12px; color: var(--nd-ink-3); line-height: 1.4; }
.ct-tabs__n { position: absolute; top: 8px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--nd-ink); color: #fff; font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.ct-tabs button[aria-selected="true"] .ct-tabs__n { background: var(--nd-brand); }
.ct-both { margin: 0 0 12px !important; padding: 12px 14px; border-radius: 14px; background: #FFF6E5; color: #7A4B00; font-size: 14px; line-height: 1.6; }
.ct-empty { padding: 48px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--nd-line); text-align: center; }
.ct-empty p { margin-bottom: 14px !important; font-size: 15px; color: var(--nd-ink-2); }
.ct-item { position: relative; }
.ct-item.is-off .od-item__img, .ct-item.is-off .od-item__body { opacity: .45; }
.ct-pick { flex: none; display: flex; align-items: flex-start; padding-top: 4px; cursor: pointer; }
.ct-pick input, .ct .od-check input { width: 20px; height: 20px; accent-color: var(--nd-brand); }
.ct-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-qty button { width: 36px; height: 36px; }
.ct-qty input { width: 48px; height: 36px; }
.ct-qty1 { font-size: 13px; color: var(--nd-ink-3); }
.ct-sum { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; }
.ct-sum small { font-size: 12px; color: var(--nd-ink-2); }
.ct-acts { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; }
.ct-acts button { padding: 0; border: 0; background: none; font: 600 13px/1.4 var(--nd-font); color: var(--nd-ink-3); cursor: pointer; }
body.nd .ct-acts a:link, body.nd .ct-acts a:visited { color: var(--nd-ink-3); font-weight: 600; text-decoration: none; }
body.nd .ct-acts a.is-danger { color: var(--nd-danger); }
.ct-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--nd-line); font-size: 13px; }
body.nd .ct-foot a:link, body.nd .ct-foot a:visited { color: var(--nd-ink-3); text-decoration: none; }
body.nd .ct-foot a.od-prev { display: inline; margin: 0; }
.ct-bar[hidden] { display: none; }
.ct-apply[hidden] { display: none !important; }