/* ===================
   1. Variables (3회차 화면: 승인 큐 · 명부 · 단원 관리 · 접근 안내)
   기본 변수(--fxt-*)는 team-settings.css 가 정의한다. 여기서는 이 화면들에만 쓰는 값을 더한다.
   =================== */
.fxt-page {
	--fxt-muted-ink: #666B79;
	--fxt-muted-surface: #EEF0F3;
	--fxt-warn: #7A4B00;
	--fxt-warn-surface: #FFF4DC;
	--fxt-ok: #1B6B34;
}

/* ===================
   2. Layout
   =================== */
.fxt-main--wide {
	max-width: 1040px;
}

.fxt-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fxt-toolbar,
.fxt-bulkbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.fxt-bulkbar {
	justify-content: space-between;
}

.fxt-bulkbar__count {
	font-size: 18px;
	font-weight: 700;
}

.fxt-note {
	margin-bottom: 16px;
	color: var(--fxt-ink-2);
	font-size: 14px;
}

/* ===================
   3. Components
   =================== */
.fxt-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--fxt-line);
	color: var(--fxt-ink-2);
	font-weight: 700;
	object-fit: cover;
}

.fxt-avatar--lg {
	width: 64px;
	height: 64px;
	font-size: 22px;
}

/* 사진 없는 이니셜 원(공용 Kc_Kit::avatar 와 같은 파스텔) — 관리자 화면은 kc-ios.css 를 싣지 않는다. */
.fxt-avatar.av { background: #FFD3D5; color: #1A1A1A; font-style: normal; }
.fxt-avatar.av.c1 { background: #E5E5EA; }
.fxt-avatar.av.c2 { background: #FFC9C2; }
.fxt-avatar.av.c3 { background: #FFE58A; }
.fxt-avatar.av.c4 { background: #BDF0DC; }
.fxt-avatar.av.c5 { background: #FFE0CC; }

.fxt-appr__photo {
	display: inline-flex;
	border-radius: 50%;
}

.fxt-btn--danger {
	border: 1px solid var(--fxt-danger);
	background: var(--fxt-surface);
	color: var(--fxt-danger);
}

.fxt-btn--danger:hover:not(:disabled) {
	background: var(--fxt-danger);
	color: var(--fxt-surface);
}

.fxt-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.fxt-input--short {
	max-width: 120px;
	font-variant-numeric: tabular-nums;
}

.fxt-input--area {
	min-height: 72px;
	padding: 10px 14px;
	resize: vertical;
}

.fxt-msg--warn {
	padding: 10px 12px;
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-warn-surface);
	color: var(--fxt-warn);
	font-size: 14px;
	font-weight: 600;
}

.fxt-pillink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--fxt-brand);
	color: var(--fxt-on-brand);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.fxt-pillink:hover {
	filter: brightness(0.92);
}

/* 대기 0건 — 다음 행동을 안내하는 별도 상태 */
.fxt-emptystate {
	padding: 32px 24px;
	border: 1px dashed var(--fxt-line-strong);
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
	text-align: center;
}

.fxt-emptystate__title {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
}

.fxt-emptystate__text {
	margin-bottom: 20px;
	color: var(--fxt-ink-2);
}

/* 승인 큐 카드: 3일 이상 기다린 카드는 테두리와 배경을 달리한다 */
.fxt-appr-list,
.fxt-adm-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ===================
   명부 머리·구역·카드(리뉴얼 2026-09-29, P2 specs 3-13 — 땅튜브 "직원 소개" 1:1)
   =================== */
.fxt-roster-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--fxt-sp-2, 8px);
	margin-bottom: var(--fxt-sp-8, 32px);
	text-align: center;
}

.fxt-roster-hero__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: var(--fxt-sp-2, 8px);
	border-radius: 50%;
	background: var(--fxt-muted-surface);
	color: var(--fxt-ink-2);
}

.fxt-roster-hero__icon .fxt-nav__icon {
	width: 36px;
	height: 36px;
}

.fxt-roster-hero__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

.fxt-roster-hero__count {
	margin: 0;
	color: var(--fxt-muted);
	font-size: 14px;
}

.fxt-roster-group {
	margin-bottom: var(--fxt-sp-8, 32px);
}

.fxt-roster-group__label {
	position: relative;
	margin: 0 0 var(--fxt-sp-4, 16px);
	padding-left: var(--fxt-sp-3, 12px);
	font-size: 16px;
	font-weight: 700;
}

.fxt-roster-group__label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 4px;
	border-radius: 2px;
	background: var(--fxt-brand);
}

.fxt-roster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--fxt-sp-4, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.fxt-roster {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fxt-appr {
	padding: 16px;
	border: 1px solid var(--fxt-line);
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
}

.fxt-appr[data-highlight="true"] {
	border-color: var(--fxt-warn);
	background: var(--fxt-warn-surface);
	box-shadow: 0 0 0 2px var(--fxt-warn);
}

.fxt-appr__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.fxt-appr__pick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.fxt-appr__pick input {
	width: 22px;
	height: 22px;
}

.fxt-appr__who {
	flex: 1 1 140px;
	min-width: 0;
}

.fxt-appr__name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.fxt-appr__meta {
	color: var(--fxt-ink-2);
	font-size: 14px;
}

.fxt-appr__when {
	display: grid;
	justify-items: end;
	color: var(--fxt-ink-2);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.fxt-appr__wait--long {
	color: var(--fxt-warn);
	font-weight: 700;
}

.fxt-appr__verified {
	margin: 8px 0 12px;
	color: var(--fxt-ok);
	font-size: 14px;
	font-weight: 600;
}

.fxt-appr__actions {
	display: grid;
	gap: 8px;
}

.fxt-appr__reason {
	display: block;
}

/* 명부 카드(리뉴얼 2026-09-29, P2 specs 3-13): 가로 행 → 세로 카드(사진 위·정보 아래)로 바꿨다. */
.fxt-mem {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: var(--fxt-sp-5, 20px) var(--fxt-sp-3, 12px);
	border-radius: var(--fxt-r-md, 12px);
	background: var(--fxt-surface);
	color: var(--fxt-ink);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.fxt-mem:hover {
	background: var(--fxt-tint-weak, var(--fxt-line));
}

.fxt-mem .fxt-mem__photo,
.fxt-mem .fxt-avatar {
	width: 72px;
	height: 72px;
	margin-bottom: var(--fxt-sp-2, 8px);
	font-size: 26px;
}

.fxt-mem__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.fxt-mem__name {
	overflow: hidden;
	max-width: 100%;
	color: var(--fxt-ink);
	font-size: 15px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fxt-mem__no {
	color: var(--fxt-ink-2);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.fxt-mem__status {
	flex: 0 0 auto;
	margin-top: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--fxt-canvas);
	color: var(--fxt-ink-2);
	font-size: 12px;
	font-weight: 700;
}

/* 부상·단기중지: 회색 처리(투표·벌금 대상 제외) */
.fxt-mem[data-muted="true"] {
	background: var(--fxt-muted-surface);
}

.fxt-mem[data-muted="true"] .fxt-mem__name,
.fxt-mem[data-muted="true"] .fxt-mem__no,
.fxt-mem[data-muted="true"] .fxt-mem__status {
	color: var(--fxt-muted-ink);
}

.fxt-mem[data-muted="true"] .fxt-avatar {
	filter: grayscale(1);
	opacity: 0.7;
}

/* 단원 상세 */
.fxt-detail {
	display: grid;
	justify-items: start;
	gap: 8px;
	text-align: left;
}

.fxt-detail__name {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.fxt-detail__sub {
	color: var(--fxt-ink-2);
	font-size: 14px;
}

.fxt-facts {
	display: grid;
	gap: 12px;
	width: 100%;
	margin: 12px 0 0;
}

.fxt-facts div {
	display: grid;
	gap: 2px;
}

.fxt-facts dt {
	color: var(--fxt-ink-2);
	font-size: 13px;
	font-weight: 600;
}

.fxt-facts dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.fxt-memo {
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-canvas);
}

.fxt-memo__title {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
}

/* 단원 관리 */
.fxt-adm {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--fxt-line);
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
}

.fxt-adm__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fxt-adm__who {
	display: grid;
	min-width: 0;
}

.fxt-adm__name {
	color: var(--fxt-ink);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.fxt-adm__role {
	color: var(--fxt-ink-2);
	font-size: 13px;
}

.fxt-adm__block {
	display: grid;
	gap: 6px;
}

.fxt-adm__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fxt-adm__line .fxt-input {
	flex: 1 1 140px;
}

.fxt-adm__line .fxt-input--short {
	flex: 0 1 120px;
}

/* 접근 안내(대기·거절·탈퇴·팀 아님) */
.fxt-state {
	display: grid;
	gap: 16px;
	text-align: left;
}

/* 손님(비로그인) 진입 화면(S-GUEST-01) */
.fxt-guest {
	text-align: center;
}

.fxt-guest__brand {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.fxt-guest__logo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.fxt-guest__logo:not([src^="data:"]) {
	object-fit: contain;
	padding: 6px;
	box-sizing: border-box;
}

.fxt-guest__name {
	margin-bottom: 0;
}

.fxt-guest__cta {
	margin-top: 4px;
}

.fxt-guest__note {
	margin-top: 4px;
	color: var(--fxt-ink-2);
	font-size: 13px;
	line-height: 1.6;
}

.fxt-reason {
	padding: 12px 16px;
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-canvas);
}

.fxt-reason__label {
	color: var(--fxt-ink-2);
	font-size: 13px;
	font-weight: 700;
}

.fxt-reason__text {
	overflow-wrap: anywhere;
}

.fxt-danger .fxt-group__title {
	color: var(--fxt-danger);
}

/* ===================
   4. Responsive
   =================== */
@media (min-width: 768px) {
	.fxt-appr__actions {
		grid-template-columns: auto 1fr auto;
		align-items: center;
	}

	.fxt-adm {
		grid-template-columns: 1fr 1fr;
	}

	.fxt-adm__head,
	.fxt-adm > .fxt-msg {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fxt-mem,
	.fxt-pillink {
		transition: none;
	}
}


/* ===================
   4회차: 다크 테마 토큰 · 게시판 설정 · 권한 관리 · 개인 설정 알림
   <html data-fxt-theme="dark|light"> — 팀 기본 테마와 개인 선택(S-MY-03)이 정한다. 색은 토큰만 바꾼다.
   =================== */
html[data-fxt-theme="dark"] body.fxt-screen {
	background: #0E1013;
}

/* 리뉴얼 2026-09-28: 땅튜브 다크 팔레트(assets/css/dark-theme.css)로 맞췄다 — bg-primary/bg-secondary/text-primary 등과 같은 값. */
html[data-fxt-theme="dark"] .fxt-page {
	--fxt-ink: #F2F3F5;
	--fxt-ink-2: #B5BAC1;
	--fxt-muted: #80848E;
	--fxt-line: #3F4147;
	--fxt-line-strong: #4E5058;
	--fxt-canvas: #0F0F0F;
	--fxt-surface: #1C1C1C;
	--fxt-danger: #F04747;
	/* F-62·D-C10: 1~3회차 화면이 쓰는 보조 토큰도 다크 값을 준다(밝은 값이 그대로 남으면 어두운 배경에서 대비가 4.5:1 아래로 떨어진다). */
	--fxt-muted-ink: #B5BAC1;
	--fxt-muted-surface: #292B2F;
	--fxt-warn: #FAA61A;
	--fxt-warn-surface: #3A2E12;
	--fxt-ok: #43B581;
	color-scheme: dark;
}

.fxt-btn--ghost {
	background-color: transparent;
	color: var(--fxt-ink);
	border: 1px solid var(--fxt-line-strong);
}

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

.fxt-board-rows,
.fxt-role-rows,
.fxt-notify-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fxt-board-row,
.fxt-role-row,
.fxt-notify-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 12px 0;
	border-top: 1px solid var(--fxt-line);
}

.fxt-board-row:first-child,
.fxt-role-row:first-child,
.fxt-notify-row:first-child {
	border-top: 0;
}

.fxt-board-row__title,
.fxt-role-row__name {
	flex: 1 1 160px;
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
}

.fxt-board-row__meta {
	color: var(--fxt-muted);
	font-size: 14px;
}

.fxt-board-row__actions,
.fxt-role-row__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fxt-board-row .fxt-btn,
.fxt-role-row .fxt-btn {
	min-height: 44px;
	padding: 0 16px;
}

.fxt-board-form .fxt-btn + .fxt-btn {
	margin-left: 8px;
}

.fxt-note--pending {
	padding: 12px 16px;
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-surface);
	border: 1px solid var(--fxt-line-strong);
}

.fxt-notify-row--locked {
	color: var(--fxt-muted);
}

@media (max-width: 480px) {
	.fxt-board-row__actions .fxt-btn,
	.fxt-role-row__actions .fxt-btn {
		flex: 1 1 auto;
	}
}

/* 4회차: 폼 간격과 이모지(이미지로 바뀐 경우에도 글자 크기로) */
.fxt-board-form .fxt-field,
.fxt-board-form .fxt-check {
	display: grid;
	gap: 6px;
	margin-top: 16px;
}

.fxt-board-form .fxt-check {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* F-62: 이 여백은 4회차 폼(개인 설정·게시판 설정)에만 적용한다 — 1~3회차 폼(.fxt-group form)에는 번지지 않게 화면 종류로 좁혔다. */
.fxt-screen--my-settings .fxt-group form > .fxt-btn,
.fxt-board-form > .fxt-btn {
	margin-top: 16px;
}

.fxt-page img.emoji {
	display: inline;
	width: 1em;
	height: 1em;
	margin: 0 0.07em;
	border: 0;
	box-shadow: none;
	background: none;
	vertical-align: -0.1em;
}

/* U-03 홈 할 일 카드 */
.fxt-todo { margin: 0 0 16px; padding: 16px; border: 1px solid var(--fxt-brand); border-radius: 12px; background: var(--fxt-surface); }
.fxt-todo__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.fxt-todo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fxt-todo__item { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 8px 0; color: var(--fxt-ink); text-decoration: none; border-top: 1px solid var(--fxt-line); }
.fxt-todo__list li:first-child .fxt-todo__item { border-top: 0; }
.fxt-todo__text { font-weight: 600; }
.fxt-todo__sub { font-size: 13px; color: var(--fxt-muted, #8a90a0); }
.fxt-todo__item:focus-visible { outline: 2px solid var(--fxt-brand); outline-offset: 2px; }

/* ===================
   G-04 원문 지정 폰트(에이투지체 A2Z, 고객 요구사항 1, 2026.09.13)는 리뉴얼 결정 D13(2026-09-24)으로 단원 화면에서 철회하고
   Pretendard 로 되돌렸다 — member-renewal.md 참고. @font-face 선언 자체는 남겨 둔다(admin 쪽 .fxt-asidebar__name 이
   여전히 포인트로 쓴다, team-admin.css:118). 여기서는 기본 폰트 토큰만 A2z 를 빼고 Pretendard 우선으로 바꾼다.
   =================== */
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-3Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-3Light.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-4Regular.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-6SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-6SemiBold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'A2z';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/%EC%97%90%EC%9D%B4%ED%88%AC%EC%A7%80%EC%B2%B4-6SemiBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
body.fxt-screen,
.fxt-page {
	--fxt-font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", sans-serif;
}

/* ===================
   마이페이지 대시보드(리뉴얼 2026-09-29, P2 specs 3-14) — class-my-dashboard-page.php
   =================== */
.fxt-mydash-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--fxt-sp-2, 8px);
	margin: var(--fxt-sp-6, 24px) 0;
}

.fxt-mydash-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: var(--fxt-sp-4, 16px) var(--fxt-sp-2, 8px);
	background: var(--fxt-surface);
	border-radius: var(--fxt-r-lg, 16px);
	text-align: center;
}

.fxt-mydash-stat__value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.fxt-mydash-stat__label {
	color: var(--fxt-ink-2);
	font-size: 12px;
}

.fxt-mydash-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--fxt-sp-4, 16px);
	margin-bottom: var(--fxt-sp-6, 24px);
}

@media (min-width: 640px) {
	.fxt-mydash-grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.fxt-mydash-money {
	display: block;
	color: inherit;
	text-decoration: none;
}

.fxt-mydash-money__amount {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
}

.fxt-mydash-money__done {
	margin: 0;
	color: var(--fxt-ok);
	font-size: 20px;
	font-weight: 700;
}

.fxt-mydash-money__sub {
	margin: 4px 0 0;
	color: var(--fxt-ink-2);
	font-size: 13px;
}
/* DB 23 휴면: 시작일·기간 칩·끝나는 날·메모 (칩·버튼 40px 이상) */
.fxt-pause { display: grid; gap: 10px; margin-top: 10px; max-width: 420px; }
.fxt-pause[hidden] { display: none; }
.fxt-pause__f { display: grid; gap: 4px; font-size: 13px; }
.fxt-pause__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fxt-admin-app .fxt-pause__chips .fxt-chip, .fxt-admin-app.fxt-admin-app .fxt-pause__chips .fxt-chip { min-height: 40px !important; height: 40px; padding: 0 14px; }
.fxt-pause .fxt-input { min-height: 40px; }
.fxt-pause__end { min-height: 40px; justify-self: start; }
