/* ===================
   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: 760px;
}

.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;
}

.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-roster,
.fxt-adm-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.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;
}

/* 명부 */
.fxt-mem {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 8px 16px;
	border: 1px solid var(--fxt-line);
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
	color: var(--fxt-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fxt-mem:hover {
	border-color: var(--fxt-ink-2);
}

.fxt-mem__body {
	display: flex;
	flex: 1 1 auto;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}

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

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

.fxt-mem__status {
	flex: 0 0 auto;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--fxt-canvas);
	color: var(--fxt-ink-2);
	font-size: 13px;
	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__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;
}

html[data-fxt-theme="dark"] .fxt-page {
	--fxt-ink: #E9EBF0;
	--fxt-ink-2: #C3C8D2;
	--fxt-muted: #A3A9B7;
	--fxt-line: #30343D;
	--fxt-line-strong: #6A7080;
	--fxt-canvas: #0E1013;
	--fxt-surface: #171A1F;
	--fxt-danger: #FF8A80;
	/* F-62·D-C10: 1~3회차 화면이 쓰는 보조 토큰도 다크 값을 준다(밝은 값이 그대로 남으면 어두운 배경에서 대비가 4.5:1 아래로 떨어진다). */
	--fxt-muted-ink: #A3A9B7;
	--fxt-muted-surface: #23272E;
	--fxt-warn: #FFD98A;
	--fxt-warn-surface: #3A2E12;
	--fxt-ok: #7FD99A;
	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;
}
