/* SnapHub shared sub-page primitives. */

.fig-sub-container {
	width: min(calc(100% - 48px),1400px);
	margin-inline: auto;
	min-width: 0;
}

/* Shared primary navigation for My Page.
 * Studio registration is an action from My Studio, not a first-level navigation item. */
.mypage-tabs {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	height: 63px;
	border-bottom: 1px solid #ffd6d6;
}

.mypage-tabs a {
	position: relative;
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	color: #222;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
}

.mypage-tabs a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: var(--primary);
	opacity: 0;
}

.mypage-tabs a.is-active {
	color: var(--primary);
}

.mypage-tabs a.is-active::after {
	opacity: 1;
}

.mypage-tabs a:focus-visible {
	outline: 2px solid rgba(255,85,85,.32);
	outline-offset: 2px;
}



/* Shared My Page identity header.
 * Registered profiles render an image avatar; unregistered profiles use the same
 * geometry with an explicit empty state. This keeps page hierarchy consistent. */
.mypage-page-head {
	box-sizing: border-box;
	padding: 18px 11px 18px;
}


.mypage-page-identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.mypage-page-identity__avatar {
	display: grid;
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: #f3f3f3;
	color: #a6a6a6;
	font: 700 22px/1 var(--font-body);
}

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

.mypage-page-identity__avatar.is-empty {
	border: 1px dashed #d6d6d6;
	background: #fafafa;
	font-size: 20px;
}

.mypage-page-identity__avatar--member {
	background: var(--primary-surface);
	color: var(--primary);
}

.mypage-page-identity__copy {
	min-width: 0;
}

.mypage-page-identity__eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--primary);
	font: 700 12px/18px var(--font-inter);
	letter-spacing: .08em;
}

.mypage-page-identity__copy h1 {
	margin-top: 7px;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: -.64px;
}

.mypage-page-identity__eyebrow + h1 {
	margin-top: 0;
}


@media (max-width: 1024px) {
	.mypage-page-head {
		padding: 16px 14px;
	}

	.mypage-page-identity {
		align-items: center;
		gap: 12px;
	}

	.mypage-page-identity__avatar {
		width: 58px;
		height: 58px;
		flex-basis: 58px;
		font-size: 18px;
	}

	.mypage-page-identity__avatar.is-empty {
		font-size: 17px;
	}

	.mypage-page-identity__eyebrow {
		margin-bottom: 2px;
		font-size: 12px;
		line-height: 18px;
	}

	.mypage-page-identity__copy h1 {
		margin-top: 4px;
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -.48px;
	}

	.mypage-page-identity__eyebrow + h1 {
		margin-top: 0;
	}

}

/* Shared Figma form surface used by Studio Register and My Page.
 * The shell owns page-level grouping; panels own white content surfaces. */
.fig-form-shell {
	box-sizing: border-box;
	width: 1400px;
	margin: 0 auto 80px;
	padding: 29px 100px 40px;
	border-radius: 14px;
	background: var(--primary-surface);
}

.fig-form-panel {
	box-sizing: border-box;
	width: 1200px;
	margin-top: 20px;
	padding: 24px;
	border-radius: 10px;
	background: #fff;
}

@media (min-width: 1025px) and (max-width: 1440px) {
	.fig-form-shell {
		width: min(calc(100% - 48px),1400px);
		padding-inline: 64px;
	}

	.fig-form-panel {
		width: 100%;
	}
}

@media (max-width: 1024px) {
	.mypage-tabs {
		height: 56px;
		background: var(--primary-surface);
	}

	.mypage-tabs a {
		font-size: 14px;
		line-height: 20px;
	}

	.mypage-tabs a::after {
		height: 2px;
	}

	.fig-sub-container {
		width: 100%;
	}

	.fig-form-shell {
		width: 100%;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: #fff;
	}

	.fig-form-panel {
		width: 100%;
		margin: 0;
		padding: 24px 14px 30px;
		border-radius: 0;
		background: #fff;
	}

	.fig-form-panel + .fig-form-panel {
		border-top: 4px solid var(--primary-surface);
	}
}

@media (max-width: 359px) {
	.mypage-tabs a {
		font-size: 12px;
	}
}
