/* R3 공통 부품 core (1-A): C-01 버튼 · C-02 탭 3종 · C-03 ⋯ 메뉴 · C-07 시트·팝오버 · C-08 입력 · C-11 모션.
   값은 kc-ui-tokens.css 토큰만 읽는다. !important 0. 빨강은 danger / danger-solid 뿐(조작 요소 빨강 0).
   옛클래스 → 새 클래스(@compat 블록 참고):
     .kc-btn--soft → .kc-btn--secondary / .kc-btn--sm → .kc-btn--s / .fxt-pop(details) → 시트·팝오버 위치는 kc-ui.js
     .fxt-btn·.fxt-lbtn·.fxt-mform__btn … → kc-btn.css 별칭(검정·흰·글자형 3종, 32/40/44) */

/* ============ C-01 버튼 ============ */
.kc-btn {
	--kb-bg: var(--kc-ink);
	--kb-fg: var(--kc-on-ink);
	--kb-hv: var(--kc-ink-hover);
	--kb-h: var(--kc-h-btn-m);
	--kb-px: 16px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	height: var(--kb-h);
	min-height: var(--kb-h);
	padding: 0 var(--kb-px);
	border: 0;
	border-radius: var(--kc-r-pill);
	background: var(--kb-bg);
	color: var(--kb-fg);
	font-family: var(--kc-font);
	font-size: var(--kc-fs-btn);
	line-height: var(--kc-lh-btn);
	font-weight: var(--kc-fw-btn);
	letter-spacing: -.01em;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--kc-dur-base) var(--kc-ease-out), color var(--kc-dur-base) var(--kc-ease-out), box-shadow var(--kc-dur-base) var(--kc-ease-out), transform var(--kc-dur-fast) var(--kc-ease-out), opacity var(--kc-dur-base) var(--kc-ease-out);
}
.kc-btn:visited { color: var(--kb-fg); }
.kc-btn .ph { width: 18px; height: 18px; flex: none; }
.kc-btn--l  { --kb-h: var(--kc-h-btn-l); --kb-px: 20px; width: 100%; }
.kc-btn--m  { --kb-h: var(--kc-h-btn-m); }
.kc-btn--s  { --kb-h: var(--kc-h-btn-s); --kb-px: 14px; }
.kc-btn--xs { --kb-h: var(--kc-h-btn-xs); --kb-px: 12px; font-size: var(--kc-fs-cap); line-height: var(--kc-lh-cap); }
.kc-btn--icon { width: var(--kb-h); padding: 0; }
.kc-btn--primary { --kb-bg: var(--kc-ink); --kb-fg: var(--kc-on-ink); --kb-hv: var(--kc-ink-hover); }
.kc-btn--secondary { --kb-bg: var(--kc-surface); --kb-fg: var(--kc-text); --kb-hv: var(--kc-row-hover); box-shadow: inset 0 0 0 1px var(--kc-line-2); }
.kc-btn--text { --kb-bg: transparent; --kb-fg: var(--kc-text); --kb-hv: var(--kc-fill); }
.kc-btn--text:not(.kc-btn--icon) { --kb-px: 12px; }
.kc-btn--danger { --kb-bg: transparent; --kb-fg: var(--kc-red); --kb-hv: var(--kc-red-tint); }
.kc-btn--danger-solid { --kb-bg: var(--kc-red); --kb-fg: #fff; --kb-hv: var(--kc-red-press); } /* 확인창 안에서만 */
.kc-btn--on-dark { --kb-bg: var(--kc-on-dark-bg); --kb-fg: var(--kc-on-dark-tx); --kb-hv: #E9E9EC; } /* 다크 히어로·시상식 위 */
@media (hover: hover) and (pointer: fine) {
	.kc-btn:hover:not(:disabled):not([aria-disabled="true"]):not(.is-loading) { background: var(--kb-hv); }
}
.kc-btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(var(--kc-press)); }
.kc-btn:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: 2px; }
.kc-btn--on-dark:focus-visible { outline-color: #fff; }
.kc-btn:disabled, .kc-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.kc-btn.is-loading { color: transparent; pointer-events: none; }
.kc-btn.is-loading .ph, .kc-btn.is-loading .kc-btn__t { opacity: 0; }
.kc-btn__spin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--kb-fg); border-top-color: transparent; border-radius: 50%; animation: kc-spin var(--kc-dur-spin) linear infinite; }
.kc-btn.is-loading { --kb-fg-spin: var(--kb-fg); }
.kc-btn--primary.is-loading .kc-btn__spin, .kc-btn:not(.kc-btn--secondary):not(.kc-btn--text):not(.kc-btn--danger):not(.kc-btn--on-dark) .kc-btn__spin { border-color: var(--kc-on-ink); border-top-color: transparent; }
.kc-btn--secondary .kc-btn__spin, .kc-btn--text .kc-btn__spin { border-color: var(--kc-ink); border-top-color: transparent; }
.kc-btn--danger .kc-btn__spin { border-color: var(--kc-red); border-top-color: transparent; }
@keyframes kc-spin { to { transform: rotate(360deg); } }

/* 터치 믹스인: 보이는 크기는 그대로, 눌리는 범위만 44 이상. ::before 는 쓰지 않는다. */
.kc-hit { position: relative; }
.kc-hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--kc-hit)); height: max(100%, var(--kc-hit)); transform: translate(-50%, -50%); background: transparent; border: 0; border-radius: 0; }

@media (max-width: 767.98px) {
	.kc-btn--l { width: 100%; }
}
@media (min-width: 768px) {
	.kc-btn--l { width: auto; min-width: 160px; }
	.kc-btn--xs { --kb-h: var(--kc-h-btn-xs-pc); }
}
@media (prefers-reduced-motion: reduce) {
	.kc-btn { transition: background-color var(--kc-dur-fast) linear, color var(--kc-dur-fast) linear, opacity var(--kc-dur-fast) linear; }
	.kc-btn:active:not(:disabled) { transform: none; }
	.kc-btn__spin { animation-duration: var(--kc-dur-toast); }
}

/* ============ C-02 탭 3종 ============ */
/* T1 페이지 탭: 높이 44(PC 48), 밑줄 2px 검정 */
.kc-tabs { position: relative; margin: 0; border-bottom: 1px solid var(--kc-line); }
.kc-tabs__in { display: flex; gap: var(--kc-sp-5); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kc-tabs__in::-webkit-scrollbar { display: none; }
.kc-tabs__a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 44px; box-sizing: border-box; padding: 0 2px; color: var(--kc-text-3); font-size: var(--kc-fs-body); line-height: var(--kc-lh-body); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color var(--kc-dur-base) var(--kc-ease-out), box-shadow var(--kc-dur-base) var(--kc-ease-out); -webkit-tap-highlight-color: transparent; }
.kc-tabs__a.is-current, .kc-tabs__a[aria-current="page"] { color: var(--kc-ink); box-shadow: inset 0 -2px 0 var(--kc-ink); font-weight: 700; }
.kc-tabs__a:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: -2px; border-radius: 4px; }
.kc-tabs__n { color: var(--kc-text-4); font-size: var(--kc-fs-cap); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .kc-tabs__a:hover { color: var(--kc-ink); } }
@media (min-width: 768px) { .kc-tabs__a { height: 48px; } }

/* T2 세그먼트: 높이 40(모바일·PC 같음), 막대 36 / .kc-seg--s 32·막대 28.
   JS 가 .is-thumb 을 붙이면 막대(.kc-seg__thumb)가 translateX 로 이동한다. JS 전·링크 모드는 선택 항목이 자기 바탕을 가진다(처음부터 그 자리). */
.kc-seg { --kc-seg-h: 40px; --kc-seg-bar: 36px; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; box-sizing: border-box; height: var(--kc-seg-h); padding: 2px; border-radius: var(--kc-r-pill); background: var(--kc-fill); isolation: isolate; max-width: 100%; vertical-align: middle; }
.kc-seg--s { --kc-seg-h: 32px; --kc-seg-bar: 28px; }
.kc-seg__b { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; height: var(--kc-seg-bar); min-width: 0; margin: 0; padding: 0 var(--kc-sp-4); border: 0; border-radius: var(--kc-r-pill); background: transparent; color: var(--kc-text-2); font-family: var(--kc-font); font-size: var(--kc-fs-btn); line-height: var(--kc-lh-btn); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color var(--kc-dur-base) var(--kc-ease-out), background-color var(--kc-dur-base) var(--kc-ease-out), transform var(--kc-dur-fast) var(--kc-ease-out); -webkit-tap-highlight-color: transparent; }
.kc-seg--s .kc-seg__b { padding: 0 var(--kc-sp-3); font-size: var(--kc-fs-sub); line-height: var(--kc-lh-sub); }
.kc-seg__n { font-size: var(--kc-fs-cap); line-height: 1; font-weight: 700; opacity: .65; font-variant-numeric: tabular-nums; }
.kc-seg__b[aria-checked="true"], .kc-seg__b[aria-current="page"], .kc-seg__b.is-current { background: var(--kc-ink); color: var(--kc-on-ink); }
.kc-seg__b:active:not(:disabled) { transform: scale(var(--kc-press)); }
.kc-seg__b:disabled { cursor: not-allowed; }
/* 잠긴(disabled) 세그먼트도 읽혀야 한다: 선택 칸은 흰 글자(불투명도만 약간), 비선택은 보조색(바탕 --kc-fill 위 4.5:1 이상). */
.kc-seg__b[aria-checked="true"]:disabled, .kc-seg__b[aria-current="page"]:disabled, .kc-seg__b.is-current:disabled { opacity: .9; color: var(--kc-on-ink); }
.kc-seg__b:disabled:not([aria-checked="true"]):not([aria-current="page"]):not(.is-current) { opacity: 1; color: var(--kc-text-3); }
.kc-seg__b:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: 2px; }
.kc-seg__thumb { display: none; }
.kc-seg.is-thumb .kc-seg__thumb { display: block; position: absolute; z-index: 0; top: 2px; left: 2px; bottom: 2px; width: calc((100% - 4px) / var(--kc-n, 1)); border-radius: var(--kc-r-pill); background: var(--kc-ink); transform: translateX(calc(var(--kc-i, 0) * 100%)); transition: transform var(--kc-dur-base) var(--kc-ease-out); pointer-events: none; }
.kc-seg.is-thumb .kc-seg__b[aria-checked="true"] { background: transparent; color: var(--kc-on-ink); }
.kc-seg.is-thumb.is-init .kc-seg__thumb { transition: none; }
.kc-seg.is-thumb.is-none .kc-seg__thumb { opacity: 0; }
.kc-seg.is-thumb.is-snap .kc-seg__thumb { transition: none; }
.kc-seg.is-thumb.is-snap .kc-seg__thumb { animation: kc-fade var(--kc-dur-base) var(--kc-ease-out); }
.kc-seg.is-busy { opacity: .7; }
@keyframes kc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .kc-seg__b:not([aria-checked="true"]):not([aria-current="page"]):not(:disabled):hover { color: var(--kc-ink); } }
@media (prefers-reduced-motion: reduce) {
	.kc-seg.is-thumb .kc-seg__thumb { transition: none; }
	.kc-seg__b:active:not(:disabled) { transform: none; }
}

/* T3 칩 필터: 높이 32, 간격 8, 한 줄 + 가로 스크롤(줄바꿈 0) */
.kc-chips { position: relative; min-width: 0; max-width: 100%; }
.kc-chips__in { max-width: 100%; box-sizing: border-box; display: flex; flex-wrap: nowrap; gap: var(--kc-sp-2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 0; margin: -6px 0; }
.kc-chips__in::-webkit-scrollbar { display: none; }
.kc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; height: 32px; padding: 0 var(--kc-sp-3); border: 0; border-radius: var(--kc-r-pill); background: var(--kc-surface); box-shadow: inset 0 0 0 1px var(--kc-line-2); color: var(--kc-text-2); font-family: var(--kc-font); font-size: var(--kc-fs-sub); line-height: var(--kc-lh-sub); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--kc-dur-base) var(--kc-ease-out), color var(--kc-dur-base) var(--kc-ease-out), box-shadow var(--kc-dur-base) var(--kc-ease-out), transform var(--kc-dur-fast) var(--kc-ease-out); -webkit-tap-highlight-color: transparent; }
.kc-chip.is-current, .kc-chip[aria-current], .kc-chip[aria-pressed="true"] { background: var(--kc-ink); box-shadow: none; color: var(--kc-on-ink); }
.kc-chip__n { font-size: var(--kc-fs-cap); font-weight: 600; opacity: .7; }
.kc-chip:active { transform: scale(var(--kc-press)); }
.kc-chip:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kc-chip:not(.is-current):not([aria-current]):not([aria-pressed="true"]):hover { background: var(--kc-row-hover); } }
@media (prefers-reduced-motion: reduce) { .kc-chip:active { transform: none; } }

/* ============ C-03 ⋯ 메뉴 ============ */
.kc-more { position: relative; display: inline-flex; }
.kc-more__menu { box-sizing: border-box; background: var(--kc-surface); color: var(--kc-text); font-family: var(--kc-font); }
.kc-more__menu[hidden] { display: none; }
.kc-menu__g { display: block; padding: var(--kc-sp-1) 0; }
.kc-menu__g + .kc-menu__g { border-top: 1px solid var(--kc-line); }
.kc-menu__h { margin: 0; padding: var(--kc-sp-2) var(--kc-sp-4) var(--kc-sp-1); color: var(--kc-text-4); font-size: var(--kc-fs-cap); line-height: var(--kc-lh-cap); font-weight: 600; }
.kc-menu__i { display: flex; align-items: center; gap: var(--kc-sp-3); width: 100%; box-sizing: border-box; min-height: 52px; margin: 0; padding: 0 var(--kc-sp-4); border: 0; background: transparent; color: var(--kc-text); font-family: var(--kc-font); font-size: var(--kc-fs-body); line-height: var(--kc-lh-body); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kc-menu__i .ph { width: 20px; height: 20px; flex: none; color: var(--kc-text-2); }
.kc-menu__i.is-danger, .kc-menu__i.is-danger .ph { color: var(--kc-red); }
.kc-menu__i:focus-visible { outline: 2px solid var(--kc-ink); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .kc-menu__i:hover { background: var(--kc-row-hover); } }
/* 모바일 하단 시트의 「취소」 버튼(PC 팝오버에서는 숨김) */
.kc-menu__cancel { display: none; }
/* 모바일: 하단 시트(항목 52) */
@media (max-width: 767.98px) {
	.kc-menu__cancel { display: block; box-sizing: border-box; width: calc(100% - 2 * var(--kc-sp-4)); min-height: 48px; margin: var(--kc-sp-2) var(--kc-sp-4) 0; padding: 0; border: 0; border-radius: var(--kc-r-md); background: var(--kc-fill); color: var(--kc-text); font-family: var(--kc-font); font-size: var(--kc-fs-body); font-weight: 600; cursor: pointer; }
	.kc-more.is-open > .kc-more__menu { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; padding: var(--kc-sp-2) 0 calc(var(--kc-sp-2) + env(safe-area-inset-bottom, 0px)); border-radius: var(--kc-r-xl) var(--kc-r-xl) 0 0; box-shadow: var(--kc-sh-sheet); transform: none; transition: transform var(--kc-sheet-in) var(--kc-sheet-ease); }
	.kc-more.is-open.is-closing > .kc-more__menu { transform: translateY(100%); transition-duration: var(--kc-sheet-out); }
}
@media (max-width: 767.98px) { @starting-style { .kc-more.is-open > .kc-more__menu { transform: translateY(100%); } } }
/* PC: 팝오버 폭 240(항목 40) — 위치는 kc-ui.js 가 뷰포트 안으로 보정(position:fixed + left/top) */
@media (min-width: 768px) {
	.kc-more.is-open > .kc-more__menu { position: fixed; z-index: 1001; width: 240px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; border-radius: var(--kc-r-md); box-shadow: var(--kc-sh-pop); animation: kc-fade var(--kc-dur-fast) var(--kc-ease-out); }
	.kc-menu__i { min-height: 40px; }
}
.kc-scrim { position: fixed; inset: 0; z-index: 1000; background: var(--kc-scrim); opacity: 1; transition: opacity var(--kc-scrim-dur) ease; }
.kc-scrim.is-out { opacity: 0; pointer-events: none; }
@starting-style { .kc-scrim { opacity: 0; } }
@keyframes kc-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.kc-more.is-open > .kc-more__menu { transition: opacity 150ms linear; transform: none !important; }
	.kc-more.is-open.is-closing > .kc-more__menu { opacity: 0; }
	.kc-sheet__p, .kc-sheet[hidden] .kc-sheet__p { transform: none !important; transition: opacity 150ms linear !important; }
	.kc-sheet__scrim, .kc-scrim { transition-duration: 150ms !important; }
}

/* ============ C-07 시트(모바일 하단 시트 / PC 대화상자 440) + 옛 details 팝오버 위치 ============ */
.kc-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--kc-font); color: var(--kc-text); }
/* 열기·닫기는 transition 만 쓴다(hidden 이 붙어도 display 가 닫힘 시간만큼 유지됨 → 닫는 도중 다시 열어도 안 깨짐). 첫 표시는 @starting-style */
.kc-sheet { transition: display var(--kc-sheet-out) allow-discrete; }
.kc-sheet[hidden] { display: none; pointer-events: none; }
.kc-sheet__scrim { cursor: pointer; position: absolute; inset: 0; background: var(--kc-scrim); opacity: 1; transition: opacity var(--kc-scrim-dur) ease; }
.kc-sheet[hidden] .kc-sheet__scrim { opacity: 0; }
.kc-sheet__p { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-height: 88dvh; border-radius: var(--kc-r-xl) var(--kc-r-xl) 0 0; background: var(--kc-surface); box-shadow: var(--kc-sh-sheet); padding-bottom: env(safe-area-inset-bottom, 0px); outline: 0; transform: none; transition: transform var(--kc-sheet-in) var(--kc-sheet-ease); }
.kc-sheet[hidden] .kc-sheet__p { transform: translateY(100%); transition-duration: var(--kc-sheet-out); }
@starting-style {
	.kc-sheet:not([hidden]) .kc-sheet__p { transform: translateY(100%); }
	.kc-sheet:not([hidden]) .kc-sheet__scrim { opacity: 0; }
}
.kc-sheet__grab { display: block; flex: none; width: 40px; height: 4px; margin: var(--kc-sp-2) auto 0; border-radius: 2px; background: var(--kc-line-2); }
.kc-sheet__hd { display: flex; align-items: center; justify-content: space-between; gap: var(--kc-sp-2); flex: none; padding: var(--kc-sp-2) var(--kc-sp-2) 0 var(--kc-sp-5); }
.kc-sheet__t { margin: 0; font-size: var(--kc-fs-card); line-height: var(--kc-lh-card); font-weight: var(--kc-fw-card); color: var(--kc-ink); }
.kc-sheet__b { flex: 1 1 auto; overflow-y: auto; padding: var(--kc-sp-3) var(--kc-sp-5) var(--kc-sp-5); -webkit-overflow-scrolling: touch; }
.kc-sheet__f { flex: none; display: flex; gap: var(--kc-sp-2); padding: var(--kc-sp-3) var(--kc-sp-5) var(--kc-sp-4); border-top: 1px solid var(--kc-line); }
@media (min-width: 768px) {
	.kc-sheet { align-items: center; }
	.kc-sheet__p { width: 440px; max-width: calc(100vw - 32px); border-radius: var(--kc-r-xl); box-shadow: var(--kc-sh-pop); padding-bottom: 0; transform: none; opacity: 1; transition: transform 200ms ease-out, opacity 200ms ease-out; }
	.kc-sheet[hidden] .kc-sheet__p { transform: scale(.97); opacity: 0; transition-duration: 200ms; }
	.kc-sheet__grab { display: none; }
}
@media (min-width: 768px) { @starting-style { .kc-sheet:not([hidden]) .kc-sheet__p { transform: scale(.97); opacity: 0; } } }
body.kc-noscroll { overflow: hidden; }

/* 옛 <details class="fxt-pop"> 팝오버: 위치 규칙은 여기 한 곳. PC = position:fixed + JS 가 left/top 보정, 모바일(<768) = 하단 시트 */
details.fxt-pop > .fxt-pop__body { position: fixed; z-index: 1001; margin: 0; max-width: calc(100vw - 16px); }
@media (max-width: 767.98px) {
	details.fxt-pop[open] > .fxt-pop__body { left: 0; right: 0; bottom: 0; top: auto; box-sizing: border-box; width: auto; max-width: none; max-height: 88dvh; overflow-y: auto; border-radius: var(--kc-r-xl) var(--kc-r-xl) 0 0; box-shadow: var(--kc-sh-sheet); padding-bottom: calc(var(--kc-sp-4) + env(safe-area-inset-bottom, 0px)); transform: none; transition: transform var(--kc-sheet-in) var(--kc-sheet-ease); }
}
@media (max-width: 767.98px) { @starting-style { details.fxt-pop[open] > .fxt-pop__body { transform: translateY(100%); } } }
details.fxt-pop[open] > summary { position: relative; z-index: 1; }

/* ============ C-08 입력 ============ */
.kc-field { display: block; min-width: 0; margin: 0 0 var(--kc-sp-4); font-family: var(--kc-font); }
.kc-field__l { display: block; margin: 0 0 6px; color: var(--kc-text-2); font-size: var(--kc-fs-sub); line-height: var(--kc-lh-sub); font-weight: 600; }
.kc-field__c { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: var(--kc-h-field); margin: 0; padding: 0 var(--kc-sp-4); border: 1px solid var(--kc-line-2); border-radius: var(--kc-r-md); background: var(--kc-surface); color: var(--kc-text); font-family: var(--kc-font); font-size: var(--kc-fs-input); line-height: var(--kc-lh-input); -webkit-appearance: none; appearance: none; transition: border-color var(--kc-dur-base) var(--kc-ease-out), box-shadow var(--kc-dur-base) var(--kc-ease-out); }
.kc-field__c::placeholder { color: var(--kc-text-dis); }
.kc-field__c:focus { outline: 0; border-color: var(--kc-ink); box-shadow: 0 0 0 1px var(--kc-ink); }
.kc-field__c:disabled { background: var(--kc-fill); color: var(--kc-text-dis); cursor: not-allowed; }
.kc-field__c--date, .kc-field__c--datetime-local { appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; display: block; }
.kc-field__c--select { padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.kc-field__c--textarea { height: auto; min-height: 120px; padding: var(--kc-sp-3) var(--kc-sp-4); resize: vertical; }
.kc-field__h { margin: 6px 0 0; color: var(--kc-text-3); font-size: var(--kc-fs-cap); line-height: var(--kc-lh-cap); }
.kc-field__e { margin: 6px 0 0; color: var(--kc-red); font-size: var(--kc-fs-cap); line-height: var(--kc-lh-cap); font-weight: 600; } /* 오류 한 줄 */
.kc-field.has-error .kc-field__c { border-color: var(--kc-red); }
.kc-field.has-error .kc-field__c:focus { box-shadow: 0 0 0 1px var(--kc-red); }
@media (min-width: 768px) { .kc-field__c { font-size: var(--kc-fs-input-pc); line-height: var(--kc-lh-input-pc); } }
/* 스위치 51×31 (.kc-native: kc-ui-motion 체크박스 모양을 받지 않는다) */
.kc-field--switch { display: block; }
.kc-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--kc-sp-3); min-height: var(--kc-h-field); cursor: pointer; }
.kc-switch .kc-field__l { margin: 0; color: var(--kc-text); font-size: var(--kc-fs-body); line-height: var(--kc-lh-body); font-weight: 500; }
.kc-switch__i { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.kc-switch__t { position: relative; flex: none; width: 51px; height: 31px; border-radius: var(--kc-r-pill); background: var(--kc-line-3); transition: background-color var(--kc-dur-base) var(--kc-ease-out); }
.kc-switch__t::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--kc-dur-base) var(--kc-ease-out); }
.kc-switch__i:checked + .kc-switch__t { background: var(--kc-ink); }
.kc-switch__i:checked + .kc-switch__t::before { transform: translateX(20px); }
.kc-switch__i:focus-visible + .kc-switch__t { outline: 2px solid var(--kc-ink); outline-offset: 2px; }
.kc-switch__i:disabled + .kc-switch__t { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .kc-switch__t::before { transition: none; } }

/* @compat-begin R3 — 옛 클래스 별칭(웨이브 5 별칭 정리에서 삭제). 옛 → 새는 파일 맨 위 주석. */
.kc-btn--soft { --kb-bg: var(--kc-surface); --kb-fg: var(--kc-text); --kb-hv: var(--kc-row-hover); box-shadow: inset 0 0 0 1px var(--kc-line-2); }
.kc-btn--sm { --kb-h: var(--kc-h-btn-s); --kb-px: 14px; }
/* @compat-end R3 */

/* ============ 4-A 레거시 컨트롤 터치 44 · 입력 글자 16 (모바일) ============
   시각 크기는 그대로 두고 터치 영역만 늘린다(::after/::before 투명 면). 입력은 iOS 확대를 막으려 16px. */
@media (max-width: 767px) {
	.kc-btn:not(.kc-hit),
	.fxt-page .fluxboard-author,
	.fxt-page .fluxboard-comment__reply-btn,
	.fxt-page .fluxboard-comment__submit-btn,
	.fxt-page .kca-more summary { position: relative; }
	.kc-btn:not(.kc-hit)::after,
	.fxt-page .fluxboard-author::after,
	.fxt-page .fluxboard-comment__reply-btn::after,
	.fxt-page .fluxboard-comment__submit-btn::after,
	.fxt-page .kca-more summary::after,
	.fxt-page .kbl-hide .sw::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); background: transparent; border: 0; border-radius: 0; }
	.fxt-page .kbl-hide .sw::before { width: 48px; height: 44px; }
	body.fxt-screen .kca-pv__sel,
	body.fxt-screen textarea.fluxboard-comment__textarea,
	body.fxt-screen .kmb-search input,
	body.fxt-screen .fluxboard-board__sort-select,
	body.fxt-screen .fxt-mform__field input,
	body.fxt-screen .kca-more input,
	body.fxt-screen .kca-more select,
	body.fxt-screen .kt-input,
	body.fxt-screen .kt-textarea,
	body.fxt-screen.fxt-screen .kca .kca-pv__sel select,
	body.fxt-screen.fxt-screen .kca-pv__sel select { font-size: 15px !important; }
	body.fxt-screen .kmb-search,
	body.fxt-screen .kmb-search input,
	body.fxt-screen .kca-more select,
	body.fxt-screen .kca-more input:not([type="checkbox"]):not([type="radio"]),
	body.fxt-screen .kt-input,
	body.fxt-screen .fxt-mform__field input { min-height: 40px; height: 40px; }
}

/* R3 날짜·시간 입력 세로 정렬 — iOS Safari 에서 appearance:none 이면 값이 위로 붙는 문제(크롬 에뮬레이션 재현 불가, 실기기 확인 항목) */
.kc-field__c--date, .kc-field__c--datetime-local, .kc-field__c--time, .kc-field__c--month { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.kc-field__c--date::-webkit-date-and-time-value, .kc-field__c--datetime-local::-webkit-date-and-time-value, .kc-field__c--time::-webkit-date-and-time-value, .kc-field__c--month::-webkit-date-and-time-value { min-height: 1.25em; margin: 0; padding: 0; text-align: left; line-height: inherit; }
.kc-field__c--date::-webkit-datetime-edit, .kc-field__c--datetime-local::-webkit-datetime-edit, .kc-field__c--time::-webkit-datetime-edit, .kc-field__c--month::-webkit-datetime-edit { padding: 0; line-height: inherit; }

/* 2026-11-14 B2: 일시 입력 = 날짜 + 시 + 분 한 줄 (390 에서 날짜 1fr · 시 72 · 분 72, 높이 44) */
.kc-dt { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px; gap: 8px; align-items: center; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.kc-dt[hidden] { display: none; }
.kc-dt .kc-dt__c { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 40px; margin: 0; padding: 0 10px; font: inherit; font-size: 15px; line-height: 1.25; }
.kc-dt .kc-dt__h, .kc-dt .kc-dt__m { padding: 0 6px; text-align: center; text-align-last: center; }
@media (min-width: 768px) { .kc-dt { grid-template-columns: minmax(0, 220px) 72px 72px; } .kc-dt .kc-dt__c { font-size: 15px; } }
/* R3 날짜 칸(.kc-dt__d)도 iOS Safari 값 위쪽 쏠림 방지 — 위 .kc-field__c--date 규칙과 같은 처방(관리자 .fxt-admin-app 밖 프런트용), 높이 44 는 그대로 */
.kc-dt .kc-dt__d { display: flex; align-items: center; -webkit-appearance: none; appearance: none; padding-top: 0; padding-bottom: 0; text-align: left; }
.kc-dt .kc-dt__d::-webkit-date-and-time-value { min-width: 0; min-height: 1.25em; margin: 0; padding: 0; text-align: left; line-height: 1.25; }
.kc-dt .kc-dt__d::-webkit-datetime-edit { padding: 0; line-height: 1.25; }

/* 2026-11-14 D2·D3: 순서 바꾸기 손잡이·떠오른 행(iOS 편집 리스트) */
.kc-handle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--kc-text-3, #8a8f98); cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.kc-handle::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; border-radius: 1px; }
.kc-handle:active { cursor: grabbing; transform: scale(0.97); }
.kc-handle:focus-visible { outline: 2px solid var(--kc-ink, #111); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kc-handle:hover { color: var(--kc-ink, #111); } }
.is-lift { position: relative; z-index: 3; background: var(--kc-surface, #fff); box-shadow: 0 10px 28px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .1); border-radius: 12px; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .kc-handle { transition: none; } .is-lift { will-change: auto; } }
/* ⋯ 메뉴 항목 설명(항목 아래 작은 글씨). 글 상세의 「중요 공지로 고정」이 쓴다. */
.kc-menu__i.has-desc { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.kc-menu__i.has-desc .ph { margin-top: 2px; }
.kc-menu__d { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--kc-text-3, #6B6B6B); }
/* 필독 공지 꽉 참 안내 시트 */
.kc-sheet__desc { margin: 0; font-size: var(--kc-fs-body); line-height: var(--kc-lh-body); color: var(--kc-text-2); }
.fxt-pinfull .kc-sheet__f .kc-btn { flex: 1 1 0; min-height: 40px; }
