/* ===================
   1. Variables (초대·가입 신청 화면 — team-settings.css 의 변수 위에 얹는다)
   =================== */
.fxt-page {
	--fxt-ok: #1B6B36;
	--fxt-warn-bg: #FFF4E5;
	--fxt-warn-ink: #7A3E00;
}

/* ===================
   2. Layout
   =================== */
.fxt-main--narrow {
	max-width: 480px;
	padding-top: 24px;
	padding-bottom: 48px;
}

.fxt-group--round {
	margin-top: 16px;
	border-radius: var(--fxt-radius);
}

.fxt-group--round + .fxt-group--round {
	border-top: 0;
}

.fxt-screen--signup .fxt-main,
.fxt-screen--invite-admin .fxt-main {
	padding-bottom: 32px;
}

/* ===================
   3. Components
   =================== */
.fxt-btn--block {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-decoration: none;
}

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

.fxt-btn--quiet:hover {
	background: var(--fxt-canvas);
	filter: none;
}

.fxt-btn:not(.fxt-btn--block):not(.fxt-btn--quiet) {
	min-width: 88px;
}

.fxt-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--fxt-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

/* 안내 면: 만료·승인 대기 같은 "끝난 상태" */
.fxt-panel {
	padding: 32px 24px;
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
}

.fxt-panel__title {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

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

.fxt-panel--notice .fxt-panel__text {
	font-weight: 600;
}

/* 초대 수락 */
.fxt-invite {
	overflow: hidden;
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
}

.fxt-invite__cover {
	height: 112px;
	background-color: var(--fxt-brand);
	background-image: linear-gradient(135deg, var(--fxt-brand) 0%, var(--fxt-brand-deep) 100%);
}

.fxt-invite__body {
	padding: 0 24px 24px;
}

.fxt-invite__logo {
	display: block;
	width: 96px;
	height: 96px;
	margin-top: -48px;
	border: 4px solid var(--fxt-surface);
	border-radius: var(--fxt-radius);
	background: var(--fxt-surface);
	object-fit: cover;
}

.fxt-invite__name {
	margin-top: 16px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.fxt-invite__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 20px 0 0;
	border-top: 1px solid var(--fxt-line);
	border-bottom: 1px solid var(--fxt-line);
}

.fxt-invite__fact {
	padding: 16px 0;
}

.fxt-invite__fact + .fxt-invite__fact {
	padding-left: 16px;
	border-left: 1px solid var(--fxt-line);
}

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

.fxt-invite__fact dd {
	margin: 2px 0 0;
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.fxt-invite__inviter {
	margin: 24px 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
}

/* 초대 관리 */
.fxt-inline-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: end;
}

.fxt-inline-form .fxt-field {
	margin-top: 0;
}

.fxt-result {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	justify-items: center;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--fxt-line);
}

.fxt-result__qr {
	width: 192px;
	height: 192px;
	border: 1px solid var(--fxt-line);
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-surface);
	image-rendering: pixelated;
}

.fxt-result__side {
	width: 100%;
	min-width: 0;
}

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

.fxt-result__link {
	display: block;
	margin: 4px 0 16px;
	color: var(--fxt-ink);
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.fxt-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fxt-result__actions .fxt-btn {
	flex: 1 1 120px;
}

.fxt-result .fxt-msg {
	margin-top: 12px;
}

.fxt-history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fxt-history__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--fxt-line);
}

.fxt-history__row:first-child {
	border-top: 0;
	padding-top: 0;
}

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

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

.fxt-history__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.fxt-history__facts dt {
	color: var(--fxt-muted);
	font-size: 13px;
}

.fxt-history__facts dd {
	margin: 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.fxt-history__expire {
	justify-self: start;
	min-height: 44px;
}

.fxt-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--fxt-canvas);
	color: var(--fxt-ink-2);
	font-size: 13px;
	font-weight: 700;
}

.fxt-badge--on {
	background: var(--fxt-ink);
	color: var(--fxt-surface);
}

.fxt-empty {
	padding: 16px;
	border: 1px dashed var(--fxt-line-strong);
	border-radius: var(--fxt-radius-sm);
	color: var(--fxt-ink-2);
	font-size: 14px;
}

/* 가입 신청 폼 */
.fxt-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.fxt-row {
	display: flex;
	gap: 8px;
}

.fxt-row .fxt-input {
	flex: 1 1 auto;
	min-width: 0;
}

.fxt-row .fxt-btn {
	flex: none;
	min-width: 44px;
	padding: 0 16px;
}

.fxt-field__status {
	min-height: 22px;
	margin-top: 8px;
	color: var(--fxt-ink-2);
	font-size: 14px;
	font-weight: 600;
}

.fxt-field__status[data-state="verified"] {
	color: var(--fxt-ok);
}

.fxt-field__status[data-state="failed"],
.fxt-field__status[data-state="locked"] {
	color: var(--fxt-danger);
}

.fxt-guide {
	margin-top: 8px;
	padding: 12px 16px;
	border-radius: var(--fxt-radius-sm);
	background: var(--fxt-warn-bg);
	color: var(--fxt-warn-ink);
	font-size: 14px;
	font-weight: 600;
}

.fxt-photo {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	align-items: start;
}

.fxt-photo__preview {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border: 1px dashed var(--fxt-line-strong);
	border-radius: var(--fxt-radius);
	background: var(--fxt-canvas);
}

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

.fxt-photo__side {
	min-width: 0;
}

.fxt-input--file {
	padding: 10px 14px;
	min-height: 48px;
	font-size: 14px;
}

.fxt-savebar--stack {
	margin-top: 16px;
}

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

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

.fxt-missing__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.fxt-missing__item {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--fxt-surface);
	box-shadow: inset 0 0 0 1px var(--fxt-line-strong);
	font-size: 14px;
	font-weight: 600;
}

.fxt-msg--error:not([hidden]) {
	margin-top: 8px;
}

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

	.fxt-result {
		grid-template-columns: 192px 1fr;
		justify-items: stretch;
	}

	.fxt-history__row {
		grid-template-columns: 160px 1fr auto;
		align-items: center;
	}

	.fxt-main--narrow {
		padding-top: 48px;
	}
}
