/* =========================================================
   테마 관리 (nodetheme_admin)
   관리자 테마(extend/adm_theme)와 같은 디자인 규칙
   - 간격 · 크기: 4, 8의 배수
   - 글자: 14(보조) / 16(본문) / 20(카드 제목) / 24(페이지 제목), 굵기 700 / 400 / 300
   - 모서리: 8px (24px 이하 작은 요소만 4px)
   ========================================================= */
:root {
	--adm-accent: #444;
	--adm-bg: #f2f2f2;
	--adm-surface: #fff;
	--adm-surface-2: #f4f4f4;
	--adm-surface-3: #eaecef;
	--adm-rail: #f9f9f9;
	--adm-line: #dfe2e6;
	--adm-line-soft: #eceef1;
	--adm-text: #444;
	--adm-text-sub: #666;
	--adm-text-muted: #999;
	--adm-success: #2f9e6b;
	--adm-warning: #d99a2b;
	--adm-info: #3b6fd8;
	--radius: 8px;
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--rail: 80px;
	--fly: 240px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-padding-top: 24px;
}

body {
	background: var(--adm-bg);
	color: var(--adm-text);
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

fieldset {
	min-width: 0;
	border: 0;
}

.sound_only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ms {
	font-family: "Material Symbols Rounded";
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	direction: ltr;
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
	font-variation-settings: "FILL" 0, "wght" 400;
	-webkit-font-smoothing: antialiased;
	user-select: none;
}

/* ---------- 왼쪽 아이콘 메뉴 ---------- */
.nt_rail {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: var(--rail);
	padding: 16px 0;
	background: var(--adm-rail);
}

.nt_rail_list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nt_rail_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
	color: var(--adm-text-muted);
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nt_rail_btn .ms {
	font-size: 28px;
}

.nt_rail_btn:hover {
	color: var(--adm-text);
}

.nt_rail_btn.is-current {
	background: var(--adm-surface);
	color: var(--adm-text);
}

.nt_rail_btn.is-current .ms {
	font-variation-settings: "FILL" 1, "wght" 400;
}

/* ---------- 하위 메뉴 ---------- */
.nt_fly {
	position: fixed;
	top: 0;
	bottom: 0;
	left: var(--rail);
	z-index: 19;
	width: var(--fly);
	padding: 32px 16px;
	background: var(--adm-surface);
	overflow-y: auto;
}

.nt_fly h3 {
	margin-bottom: 16px;
	padding: 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
}

.nt_fly li + li {
	margin-top: 4px;
}

.nt_fly a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 8px 36px 8px 12px;
	border-radius: var(--radius);
	color: var(--adm-text-muted);
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nt_fly a:hover {
	background: var(--adm-surface-2);
	color: var(--adm-text);
}

.nt_fly a.is-current {
	background: var(--adm-accent);
	color: #fff;
	font-weight: 700;
}

.nt_fly a.is-current::after {
	content: "chevron_right";
	position: absolute;
	top: 50%;
	right: 8px;
	font-family: "Material Symbols Rounded";
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
}

.nt_fly_note {
	margin-top: 24px;
	padding: 0 12px;
	color: var(--adm-text-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}

/* ---------- 본문 ---------- */
.nt_container {
	min-height: 100vh;
	padding: 0 40px 48px calc(var(--rail) + var(--fly) + 40px);
	animation: nt_enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nt_enter {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.nt_title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 32px 0 24px;
}

.nt_title h1 {
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.nt_title_btns {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nt_pending {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

/* 칩 (구역 바로가기 · 태블릿 메뉴) */
.nt_chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.nt_chips a {
	display: flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border-radius: var(--radius);
	background: var(--adm-surface);
	color: var(--adm-text-sub);
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nt_chips a:hover {
	color: var(--adm-text);
}

.nt_chips a.is-current {
	background: var(--adm-accent);
	color: #fff;
	font-weight: 700;
}

.nt_mtabs {
	display: none;
}

.nt_desc {
	margin-bottom: 24px;
	color: var(--adm-text-sub);
	font-size: 14px;
	font-weight: 300;
	line-height: 24px;
}

.nt_desc b {
	color: var(--adm-text);
	font-weight: 700;
}

/* 알림 */
.nt_notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 24px;
	border-radius: var(--radius);
	background: var(--adm-surface);
	font-size: 14px;
	line-height: 24px;
}

.nt_notice .ms {
	flex: none;
	margin-top: 2px;
	font-variation-settings: "FILL" 1, "wght" 400;
}

.nt_notice b {
	margin-right: 8px;
	font-weight: 700;
}

.nt_notice.is-demo .ms {
	color: var(--adm-warning);
}

.nt_notice.is-ok .ms {
	color: var(--adm-success);
}

.nt_notice.is-info .ms {
	color: var(--adm-info);
}

/* 버튼 */
.nt_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--adm-surface);
	color: var(--adm-text);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.16s var(--ease), color 0.16s var(--ease), opacity 0.16s var(--ease);
}

.nt_btn:hover {
	background: var(--adm-surface-3);
}

.nt_btn.is-dark {
	min-width: 64px;
	background: var(--adm-accent);
	color: #fff;
	font-weight: 700;
}

.nt_btn.is-dark:hover {
	background: #333;
}

.nt_btn.is-sm {
	height: 32px;
	padding: 0 12px;
	font-size: 14px;
	line-height: 20px;
}

.nt_btn .ms {
	font-size: 18px;
}

.nt_card .nt_btn,
.nt_auto .nt_btn {
	background: var(--adm-surface-2);
}

.nt_card .nt_btn:hover,
.nt_auto .nt_btn:hover {
	background: var(--adm-surface-3);
}

.nt_btn:disabled,
fieldset:disabled .nt_btn {
	opacity: 0.4;
	cursor: not-allowed;
}

/* 체크박스: 관리자 테마와 같은 둥근 체크 */
.nt_chk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
}

.nt_chk input {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--adm-surface-2);
	cursor: pointer;
	transition: background 0.16s var(--ease);
}

.nt_chk input::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--adm-line);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nt_chk input:checked {
	background: var(--adm-accent);
}

.nt_chk input:checked::before {
	background: #fff;
}

/* ---------- 구역 · 카드 ---------- */
.nt_sec + .nt_sec {
	margin-top: 40px;
}

.nt_sec_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.nt_sec_head h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.nt_sec_head small {
	min-width: 24px;
	height: 20px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--adm-surface-3);
	color: var(--adm-text-sub);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.nt_link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--adm-text-muted);
	font-size: 14px;
	line-height: 20px;
}

.nt_link .ms {
	font-size: 16px;
}

.nt_link:hover {
	color: var(--adm-text);
}

.nt_card {
	padding: 16px;
	border-radius: var(--radius);
	background: var(--adm-surface);
}

/* 이미지 목록 */
.nt_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px 16px;
}

.nt_item {
	min-width: 0;
}

.nt_thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 12px;
	border-radius: var(--radius);
	background: var(--adm-surface-2);
}

.nt_thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.nt_item:hover .nt_thumb img {
	transform: scale(1.03);
}

.nt_item.is-pending .nt_thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--adm-accent);
}

.nt_item_tit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.nt_item_tit b {
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nt_badge {
	flex: none;
	height: 20px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--adm-surface-2);
	color: var(--adm-text-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
}

.nt_item.is-custom .nt_badge {
	background: #e7f5ee;
	color: var(--adm-success);
}

.nt_item.is-pending .nt_badge {
	background: var(--adm-accent);
	color: #fff;
}

.nt_item.is-pending .nt_badge::after {
	content: " · 저장 전";
}

.nt_size {
	margin: 4px 0 12px;
	color: var(--adm-text-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}

.nt_item_btns {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
}

/* ---------- SEO 입력 ---------- */
.nt_auto {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	padding: 16px 24px;
	border-radius: var(--radius);
	background: var(--adm-surface);
	font-size: 14px;
	font-weight: 300;
	line-height: 24px;
}

.nt_auto b {
	font-weight: 700;
}

.nt_fields {
	padding: 0 16px;
}

.nt_field {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px;
	padding: 16px 8px 16px 24px;
}

.nt_field + .nt_field {
	border-top: 1px solid var(--adm-line-soft);
}

.nt_field > label {
	padding-top: 8px;
	font-weight: 700;
	line-height: 24px;
}

.nt_field input[type="text"],
.nt_field select,
.nt_field textarea {
	width: 100%;
	max-width: 800px;
	border: 0;
	border-radius: var(--radius);
	background: var(--adm-surface-2);
	font-size: 16px;
	transition: box-shadow 0.16s var(--ease);
}

.nt_field input[type="text"] {
	height: 40px;
	padding: 0 16px;
	line-height: 40px;
}

.nt_field input.is-half {
	max-width: 400px;
}

.nt_field select {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: 280px;
	height: 40px;
	padding: 0 40px 0 16px;
	background: var(--adm-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
	cursor: pointer;
}

.nt_field textarea {
	display: block;
	padding: 8px 16px;
	line-height: 24px;
	resize: vertical;
}

.nt_field input:focus,
.nt_field select:focus,
.nt_field textarea:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--adm-text-muted);
}

.nt_field ::placeholder {
	color: var(--adm-text-muted);
	font-weight: 300;
}

fieldset:disabled input,
fieldset:disabled select,
fieldset:disabled textarea {
	cursor: not-allowed;
}

.nt_row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	max-width: 800px;
}

.nt_row + .nt_row,
input + .nt_row {
	margin-top: 8px;
}

.nt_row input[type="text"] {
	flex: 1 1 160px;
	width: auto;
}

.nt_help {
	margin-top: 8px;
	color: var(--adm-text-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}

.nt_field textarea.nt_code {
	max-width: none;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 20px;
}

/* ---------- 자주 묻는 질문 ---------- */
.nt_faq_list {
	counter-reset: none;
}

.nt_faq_item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: start;
	gap: 16px;
	padding: 16px 8px;
}

.nt_faq_item + .nt_faq_item {
	border-top: 1px solid var(--adm-line-soft);
}

.nt_faq_num {
	padding-top: 8px;
	color: var(--adm-text-muted);
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.nt_faq_body {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.nt_faq_body input,
.nt_faq_body textarea {
	width: 100%;
	border: 0;
	border-radius: var(--radius);
	background: var(--adm-surface-2);
	font-size: 16px;
	transition: box-shadow 0.16s var(--ease);
}

.nt_faq_body input {
	height: 40px;
	padding: 0 16px;
	font-weight: 700;
	line-height: 40px;
}

.nt_faq_body textarea {
	display: block;
	padding: 8px 16px;
	line-height: 24px;
	resize: vertical;
}

.nt_faq_body input:focus,
.nt_faq_body textarea:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--adm-text-muted);
}

.nt_faq_body ::placeholder {
	color: var(--adm-text-muted);
	font-weight: 300;
}

.nt_faq_tools {
	display: flex;
	gap: 4px;
	padding-top: 4px;
}

.nt_icon_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--radius);
	background: none;
	color: var(--adm-text-muted);
	cursor: pointer;
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nt_icon_btn:hover {
	background: var(--adm-surface-2);
	color: var(--adm-text);
}

.nt_icon_btn[data-faq="del"]:hover {
	color: #d64545;
}

.nt_faq_item:first-child [data-faq="up"],
.nt_faq_item:last-child [data-faq="down"] {
	visibility: hidden;
}

fieldset:disabled .nt_icon_btn {
	opacity: 0.4;
	cursor: not-allowed;
}

.nt_faq_add {
	width: calc(100% - 16px);
	margin: 8px;
	border: 1px dashed var(--adm-line);
}

.nt_card .nt_faq_add {
	background: none;
}

.nt_card .nt_faq_add:hover {
	background: var(--adm-surface-2);
}

/* ---------- 반응형 (관리자 테마와 같은 기준) ---------- */
@media (max-width: 1280px) {
	.nt_grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

/* 태블릿: 아이콘 메뉴만 두고 하위 메뉴는 본문 위 칩으로 */
@media (max-width: 960px) {
	.nt_fly {
		display: none;
	}

	.nt_container {
		padding: 0 24px 48px calc(var(--rail) + 24px);
	}

	.nt_mtabs {
		display: flex;
	}

	.nt_field {
		grid-template-columns: 1fr;
		padding: 16px 8px;
	}

	.nt_field > label {
		padding-top: 0;
	}

	.nt_auto {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* 모바일: 아이콘 메뉴를 위쪽 바로 */
@media (max-width: 640px) {
	.nt_rail {
		top: 0;
		right: 0;
		bottom: auto;
		flex-direction: row;
		width: auto;
		height: 56px;
		padding: 0 8px;
	}

	.nt_rail_list {
		flex-direction: row;
		gap: 4px;
	}

	.nt_rail_btn {
		width: 40px;
		height: 40px;
	}

	.nt_rail_btn .ms {
		font-size: 24px;
	}

	.nt_container {
		padding: 56px 16px 40px;
	}

	.nt_title {
		padding: 24px 0 16px;
	}

	.nt_title h1 {
		font-size: 22px;
	}

	.nt_chips {
		flex-wrap: nowrap;
		margin-right: -16px;
		padding-right: 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.nt_chips::-webkit-scrollbar {
		display: none;
	}

	.nt_notice,
	.nt_auto {
		padding: 16px;
	}

	.nt_card {
		padding: 12px;
	}

	.nt_fields {
		padding: 0 12px;
	}

	.nt_grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px 8px;
	}

	.nt_field select {
		min-width: 0;
		width: 100%;
	}

	.nt_faq_item {
		grid-template-columns: 1fr auto;
		gap: 8px;
		padding: 16px 0;
	}

	.nt_faq_num {
		padding-top: 4px;
		text-align: left;
	}

	.nt_faq_body {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.nt_faq_tools {
		padding-top: 0;
	}
}

/* 구역 탭 전환 (스크립트가 켜졌을 때 한 구역씩) */
.nt_sec[hidden] {
	display: none;
}

.nt_tabs_on .nt_sec + .nt_sec {
	margin-top: 0;
}

.nt_sec.is-enter {
	animation: nt_sec_enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nt_sec_enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.nt_chips a.has-pending::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-radius: 50%;
	background: #d64545;
}

/* ---------- 게시판 ---------- */
.nt_bo_list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
	gap: 16px;
}

.nt_bo {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}

.nt_bo_head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.nt_bo_tit {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nt_bo_tit b {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.nt_bo_tit code {
	padding: 0 6px;
	border-radius: 4px;
	background: var(--adm-surface-2);
	color: var(--adm-text-sub);
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 20px;
}

.nt_bo_where {
	color: var(--adm-text-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}

.nt_bo_links {
	display: flex;
	gap: 16px;
	margin-left: auto;
}

.nt_badge.is-warn {
	background: #fdf1e1;
	color: var(--adm-warning);
}

.nt_bo_grid {
	display: grid;
	grid-template-columns: 1.4fr 1.4fr 1fr;
	gap: 12px;
}

.nt_bo_grid.is-lv {
	grid-template-columns: repeat(4, 1fr);
}

.nt_bo_f {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.nt_bo_f > span {
	color: var(--adm-text-sub);
	font-size: 14px;
	line-height: 20px;
}

.nt_bo input[type="text"],
.nt_bo input[type="number"],
.nt_bo select {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--adm-surface-2);
	font-size: 16px;
	transition: box-shadow 0.16s var(--ease);
}

.nt_bo select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 36px;
	background: var(--adm-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
	cursor: pointer;
}

.nt_bo input:focus,
.nt_bo select:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--adm-text-muted);
}

.nt_bo ::placeholder {
	color: var(--adm-text-muted);
	font-weight: 300;
}

.nt_bo_cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--adm-line-soft);
}

.nt_bo_cat .nt_chk {
	flex: none;
}

.nt_bo_cat input[type="text"] {
	flex: 1;
}

.nt_bo_empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--adm-surface-soft, #f9f9f9);
	color: var(--adm-text-sub);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}

/* ---------- FAQ 페이지 분류 ---------- */
.nt_fp_cats {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nt_fp_head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 16px;
	border-bottom: 1px solid var(--adm-line-soft);
}

.nt_fp_head > .ms {
	color: var(--adm-text-muted);
	font-size: 24px;
	font-variation-settings: "FILL" 1, "wght" 400;
}

.nt_fp_name {
	flex: 1;
	max-width: 400px;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--adm-surface-2);
	font-size: 16px;
	font-weight: 700;
}

.nt_fp_name:focus {
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--adm-text-muted);
}

.nt_fp_n {
	color: var(--adm-text-muted);
	font-size: 14px;
	line-height: 20px;
}

.nt_fp_n b {
	color: var(--adm-text);
	font-weight: 700;
}

.nt_fp_head .nt_faq_tools {
	margin-left: auto;
	padding: 0;
}

.nt_fp_cat:first-child [data-fp="cat-up"],
.nt_fp_cat:last-child [data-fp="cat-down"] {
	visibility: hidden;
}

.nt_fp_addcat {
	width: 100%;
	margin-top: 16px;
	border: 1px dashed var(--adm-line);
	background: none;
}

.nt_fp_addcat:hover {
	background: var(--adm-surface);
}

.nt_sec > .nt_desc:first-child {
	margin-bottom: 16px;
}

@media (max-width: 1280px) {
	.nt_bo_list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nt_bo {
		padding: 16px;
	}

	.nt_bo_links {
		margin-left: 0;
	}

	.nt_bo_grid,
	.nt_bo_grid.is-lv {
		grid-template-columns: 1fr 1fr;
	}

	.nt_bo_cat,
	.nt_bo_empty {
		flex-direction: column;
		align-items: stretch;
	}

	.nt_fp_head {
		flex-wrap: wrap;
	}

	.nt_fp_name {
		flex-basis: calc(100% - 36px);
		max-width: none;
	}
}

.nt_faq_item:first-child [data-fp="up"],
.nt_faq_item:last-child [data-fp="down"] {
	visibility: hidden;
}

/* =========================================================
   입력 요소: 관리자 테마(extend/adm_theme/scss/_forms.scss)와 같은 규칙
   ========================================================= */
:root {
	--adm-check-off: var(--adm-surface-2);
	--adm-focus: 0 2px 12px color-mix(in srgb, var(--adm-accent) 14%, transparent), 0 0 0 4px color-mix(in srgb, var(--adm-accent) 4%, transparent);
}

/* 입력칸 · 선택상자: 회색 칸, 포커스 때 흰 바탕 + 옅은 번짐 그림자 (테두리 없음) */
.nt_container input[type="text"],
.nt_container input[type="number"],
.nt_container select,
.nt_container textarea {
	border: 0;
	border-radius: var(--radius);
	background-color: var(--adm-surface-2);
	color: var(--adm-text);
	font-size: 16px;
	outline: none;
	transition: box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nt_container input[type="text"]:focus,
.nt_container input[type="number"]:focus,
.nt_container select:focus,
.nt_container textarea:focus {
	background-color: var(--adm-surface);
	box-shadow: var(--adm-focus);
}

.nt_container input::placeholder,
.nt_container textarea::placeholder {
	color: var(--adm-text-muted);
	font-weight: 400;
}

/* 선택상자: 직접 그린 화살표를 오른쪽 16px 안쪽에 (글자 왼쪽 여백과 같게) */
.nt_container select {
	-webkit-appearance: none;
	appearance: none;
	height: 40px;
	padding: 0 40px 0 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	line-height: 40px;
	cursor: pointer;
}

/* 체크박스: 회색 원 + 선 색 체크 / 켜지면 포인트 컬러 원 + 흰 체크가 왼쪽부터 그려짐 */
.nt_container input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--adm-check-off);
	vertical-align: middle;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nt_container input[type="checkbox"]::before {
	content: none;
}

.nt_container input[type="checkbox"]::after {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--adm-line);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nt_container input[type="checkbox"]:checked {
	background: var(--adm-accent);
}

.nt_container input[type="checkbox"]:checked::after {
	background: #fff;
}

.nt_container input[type="checkbox"]:active {
	transform: scale(0.88);
}

.nt_container input[type="checkbox"].is-toggled:checked {
	animation: nt_check_pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nt_container input[type="checkbox"].is-toggled:checked::after {
	animation: nt_check_draw 0.28s cubic-bezier(0.65, 0, 0.35, 1) 0.06s both;
}

.nt_container input[type="checkbox"]:focus {
	outline: none;
}

.nt_container input[type="checkbox"]:focus-visible {
	box-shadow: var(--adm-focus);
}

.nt_container input[type="checkbox"]:disabled,
.nt_container select:disabled,
.nt_container input:disabled,
.nt_container textarea:disabled {
	cursor: not-allowed;
}

.nt_container input[type="checkbox"]:disabled {
	opacity: 0.4;
}

@keyframes nt_check_pop {
	0% {
		transform: scale(0.8);
	}
	60% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes nt_check_draw {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nt_container input[type="checkbox"].is-toggled:checked,
	.nt_container input[type="checkbox"].is-toggled:checked::after {
		animation: none;
	}
}

/* 데모 안내: 아이콘 없이 본문 크기 */
.nt_notice.is-demo,
.nt_notice.is-run {
	font-size: 16px;
	line-height: 24px;
}

/* 화면 설명: 본문 크기 */
.nt_desc {
	font-size: 16px;
	line-height: 28px;
}

/* ---------- 팝업 ---------- */
.nt_pop_list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 16px;
}

.nt_pop_item {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 24px;
	align-items: start;
}

.nt_pop_thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--pop-ratio, 4 / 5);
	border-radius: var(--radius);
	background: var(--adm-surface-2);
	cursor: pointer;
	transition: aspect-ratio 0.2s var(--ease);
}

.nt_pop_thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nt_pop_thumb img[hidden] {
	display: none;
}

.nt_pop_pick {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--adm-text-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	transition: background 0.16s var(--ease), color 0.16s var(--ease), opacity 0.16s var(--ease);
}

.nt_pop_pick .ms {
	font-size: 28px;
}

.nt_pop_thumb img:not([hidden]) + .nt_pop_pick {
	background: rgba(0, 0, 0, 0.48);
	color: #fff;
	opacity: 0;
}

.nt_pop_thumb:hover .nt_pop_pick,
.nt_pop_thumb:focus-within .nt_pop_pick {
	opacity: 1;
}

.nt_pop_thumb:hover img[hidden] + .nt_pop_pick {
	background: var(--adm-surface-3);
	color: var(--adm-text);
}

.nt_pop_item.is-pending .nt_pop_thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--adm-accent);
	pointer-events: none;
}

fieldset:disabled .nt_pop_thumb {
	cursor: not-allowed;
}

fieldset:disabled .nt_pop_thumb .nt_pop_pick {
	opacity: 0;
}

.nt_pop_body {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.nt_pop_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.nt_pop_head .nt_faq_tools {
	padding-top: 0;
}

.nt_pop_no {
	font-weight: 700;
	line-height: 32px;
}

.nt_pop_item.is-new .nt_pop_no::after {
	content: "새로 추가";
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--adm-accent);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	vertical-align: 2px;
}

.nt_pop_item input[type="text"] {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	line-height: 40px;
}

.nt_pop_item:first-child [data-pop="up"],
.nt_pop_item:last-child [data-pop="down"] {
	visibility: hidden;
}

.nt_icon_btn[data-pop="del"]:hover {
	color: #d64545;
}

.nt_pop_empty {
	display: none;
	padding: 40px 16px;
	border-radius: var(--radius);
	background: var(--adm-surface);
	color: var(--adm-text-muted);
	text-align: center;
}

#nt_popup_form.is-empty .nt_pop_empty {
	display: block;
}

.nt_pop_add {
	width: 100%;
	margin-top: 16px;
	border: 1px dashed var(--adm-line);
	background: none;
}

.nt_pop_add:hover {
	background: var(--adm-surface);
}

.nt_pop_dates {
	flex-wrap: nowrap;
}

.nt_pop_unit {
	position: relative;
	display: block;
	flex: 0 1 160px;
}

.nt_pop_unit input[type="number"] {
	width: 100%;
	height: 40px;
	padding: 0 48px 0 16px;
	line-height: 40px;
}

.nt_pop_unit em {
	position: absolute;
	top: 50%;
	right: 16px;
	color: var(--adm-text-muted);
	font-style: normal;
	transform: translateY(-50%);
	pointer-events: none;
}

.nt_pop_size {
	flex-wrap: nowrap;
}

.nt_pop_size > span:not(.nt_pop_unit) {
	color: var(--adm-text-muted);
}

.nt_pop_dates > span {
	color: var(--adm-text-muted);
}

.nt_container input[type="date"] {
	flex: 0 1 200px;
	min-width: 0;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background-color: var(--adm-surface-2);
	color: var(--adm-text);
	font-family: inherit;
	font-size: 16px;
	outline: none;
	transition: box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nt_container input[type="date"]:focus {
	background-color: var(--adm-surface);
	box-shadow: var(--adm-focus);
}

.nt_container input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0.5;
	cursor: pointer;
}

@media (max-width: 640px) {
	.nt_pop_list {
		grid-template-columns: 1fr;
	}

	.nt_pop_item {
		grid-template-columns: 112px 1fr;
		gap: 16px;
	}
}
