/* =========================
   Babdori Public Profile
========================= */

.public-profile-page {
	width: 100%;
	min-height: 100vh;
	padding: 0 0 50px;
	background: #F5F7F9;
	box-sizing: border-box;
}

.public-profile-container {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 10px 16px 24px;
	box-sizing: border-box;
}

.public-profile-card,
.public-profile-content,
.public-profile-private-section,
.public-profile-owner-notice,
.public-profile-not-found {
	width: 100%;
	box-sizing: border-box;
}


/* =========================
   Profile Card
========================= */

.public-profile-card {
	display: grid;
	justify-items: center;
	gap: 15px;
	padding: 20px 22px 22px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: none;
	text-align: center;
	box-sizing: border-box;
	overflow: hidden;
}

.public-profile-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% + 44px);
	min-height: 48px;
	margin: 0 -22px 10px;
	padding: 0 16px;
	box-sizing: border-box;
}

.public-profile-back-button,
.public-profile-block-text-button,
.public-profile-toolbar-spacer {
	width: 42px;
	min-width: 42px;
	height: 42px;
}

.public-profile-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #334155;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.public-profile-back-button svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-back-button:hover,
.public-profile-back-button:focus {
	background: #f1f5f9;
	color: #111827;
	text-decoration: none;
	outline: none;
}

.public-profile-block-text-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #475569;
	font-family: inherit;
	font-size: 14px;
	font-weight: 750;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-block-text-button:disabled {
	opacity: 1;
	cursor: default;
}

.public-profile-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border: 3px solid #dbeafe;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	overflow: hidden;
	box-sizing: border-box;
}

.public-profile-avatar img,
.public-profile-avatar .babdori-profile-avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.public-profile-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.public-profile-information {
	display: grid;
	justify-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.public-profile-name-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
}

.public-profile-nickname {
	margin: 0;
	color: #111827;
	font-size: 19px;
	font-weight: 850;
	line-height: 1.3;
	letter-spacing: -0.03em;
	word-break: break-word;
}

.public-profile-private-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 23px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.public-profile-bio {
	max-width: 100%;
	margin: 0;
	color: #64748b;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.public-profile-bio.is-empty {
	color: #94a3b8;
}

/* =========================
   Follow Stats
========================= */

.public-profile-follow-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 2px;
}

.public-profile-follow-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 30px;
	margin: 0;
	padding: 4px 7px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.public-profile-follow-stat strong {
	color: #1e293b;
	font-weight: 850;
}

.public-profile-follow-stat:hover,
.public-profile-follow-stat:focus {
	background: #f1f5f9;
	color: #475569;
	outline: none;
}

.public-profile-follow-stat:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* =========================
   Profile Actions
========================= */

.public-profile-actions {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin-top: 3px;
}

/* 모든 액션 버튼 공통 */
.public-profile-edit-button,
.public-profile-follow-button,
.public-profile-settings-button,
.public-profile-action-user-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

/* 왼쪽 버튼: 약 75% */
.public-profile-edit-button,
.public-profile-follow-button {
	flex: 3 1 0;
	width: auto;
	padding: 0 16px;
	border: 0;
	background: #E6F0FC;
	color: #2272EB;
}

/* 팔로우 버튼 */
.public-profile-follow-button {
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease;
}

.public-profile-follow-button:hover,
.public-profile-follow-button:focus {
	background: #DCE9FC;
	color: #1D64D7;
	outline: none;
}

/* 이미 팔로우 중 */
.public-profile-follow-button.is-following {
	background: #eef2f7;
	color: #475569;
}

.public-profile-follow-button.is-following:hover,
.public-profile-follow-button.is-following:focus {
	background: #e2e8f0;
	color: #334155;
}

/* 프로필 수정 연필 아이콘 */
.public-profile-edit-button {
	gap: 6px;
}

.public-profile-edit-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* 링크 형태인 프로필 수정 */
.public-profile-edit-button {
	text-decoration: none;
	cursor: pointer;
}

.public-profile-edit-button:hover,
.public-profile-edit-button:focus {
	background: #DCE9FC;
	text-decoration: none;
	outline: none;
}

/* 오른쪽 아이콘 버튼: 약 25% */
.public-profile-settings-button,
.public-profile-action-user-button {
	flex: 1 1 0;
	min-width: 58px;
	padding: 0;
	border: 1px solid #dbe3ee;
	background: #f8fafc;
	color: #64748b;
}

/* 톱니바퀴·사람 아이콘 공통 */
.public-profile-settings-button svg,
.public-profile-action-user-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-settings-button svg {
	stroke-width: 2.4;
}

.public-profile-action-user-button svg {
	stroke-width: 1.8;
}

/* 준비 중 버튼 */
.public-profile-follow-button:disabled,
.public-profile-settings-button:disabled,
.public-profile-action-user-button:disabled {
	opacity: 1;
	cursor: default;
}

.public-profile-ready-label {
	margin-left: 5px;
	font-size: 11px;
	font-weight: 650;
	opacity: 0.72;
}

/* 키보드 접근성 */
.public-profile-edit-button:focus-visible,
.public-profile-follow-button:focus-visible,
.public-profile-settings-button:focus-visible,
.public-profile-action-user-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* =========================
   Profile Edit Title Colors
========================= */

.public-profile-title-choice.is-blue > span {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
}

.public-profile-title-choice.is-red > span {
	border-color: #fecaca;
	background: #fff1f2;
	color: #e11d48;
}

.public-profile-title-choice.is-yellow > span {
	border-color: #fde68a;
	background: #fffbeb;
	color: #b45309;
}

.public-profile-title-choice.is-gold > span {
	border-color: #fcd34d;
	background: #fef3c7;
	color: #a16207;
}

.public-profile-title-choice.is-purple > span {
	border-color: #ddd6fe;
	background: #f5f3ff;
	color: #7c3aed;
}

.public-profile-title-choice.is-emerald > span {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #059669;
}

.public-profile-title-choice.is-sky > span {
	border-color: #bae6fd;
	background: #f0f9ff;
	color: #2272EB;
}

/* =========================
   Owner Notice
========================= */

.public-profile-owner-notice {
	margin-top: 14px;
	padding: 13px 15px;
	border: 1px solid #bfdbfe;
	border-radius: 14px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.55;
	text-align: center;
	word-break: keep-all;
}


/* =========================
   Private Profile
========================= */

.public-profile-private-section {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 38px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #ffffff;
	text-align: center;
	box-sizing: border-box;
}

.public-profile-private-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 2px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
}

.public-profile-private-icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-private-section h2 {
	margin: 0;
	color: #1e293b;
	font-size: 17px;
	font-weight: 850;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.public-profile-private-section p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	word-break: keep-all;
}

/* =========================
   Profile Content
========================= */

.public-profile-content {
	margin-top: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #ffffff;
	overflow: hidden;
	box-sizing: border-box;
}

.public-profile-main-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid #e8edf3;
}

.public-profile-main-tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 46px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-main-tab::after {
	position: absolute;
	right: 17%;
	bottom: 0;
	left: 17%;
	height: 3px;
	border-radius: 999px 999px 0 0;
	background: transparent;
	content: "";
}

.public-profile-main-tab.is-active {
	color: #1e293b;
	font-weight: 850;
}

.public-profile-main-tab.is-active::after {
	background: #2563eb;
}

.public-profile-main-tab:disabled {
	opacity: 1;
	cursor: default;
}

.public-profile-tab-panel[data-profile-panel="badges"] {
	padding: 18px 15px 20px;
}

.public-profile-tab-panel {
	min-width: 0;
}

.public-profile-activity-tabs {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 14px 15px 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.public-profile-activity-tabs::-webkit-scrollbar {
	display: none;
}

.public-profile-activity-tab {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: #64748b;
	font-family: inherit;
	font-size: 13px;
	font-weight: 750;
	white-space: nowrap;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-activity-tab.is-active {
	background: #eef2f7;
	color: #1e293b;
	font-weight: 850;
}

.public-profile-activity-tab:disabled {
	opacity: 1;
	cursor: default;
}

.public-profile-empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 28px 18px;
	text-align: center;
	box-sizing: border-box;
}

.public-profile-empty-state p {
	margin: 0;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

/* =========================
   Profile Not Found
========================= */

.public-profile-not-found {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin-top: 40px;
	padding: 40px 22px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	text-align: center;
	box-sizing: border-box;
}

.public-profile-not-found h1 {
	margin: 0;
	color: #1e293b;
	font-size: 20px;
	font-weight: 850;
	line-height: 1.4;
}

.public-profile-not-found p {
	margin: 0 0 8px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
}

.public-profile-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.public-profile-home-button:hover,
.public-profile-home-button:focus {
	background: #1d4ed8;
	color: #ffffff;
	text-decoration: none;
	outline: none;
}


/* =========================
   Responsive
========================= */

@media (max-width: 480px) {
	.public-profile-page {
		padding-bottom: 100px;
	}

	.public-profile-container {
		padding: 10px 16px 24px;
	}

	.public-profile-card {
		padding: 16px 18px 18px;
		border-radius: 18px;
	}

	.public-profile-avatar {
		width: 82px;
		height: 82px;
		font-size: 28px;
	}

	.public-profile-nickname {
		font-size: 18px;
	}

	.public-profile-private-section {
		padding: 34px 18px;
	}
}

@media (max-width: 380px) {
	.public-profile-container {
		padding-right: 10px;
		padding-left: 10px;
	}

	.public-profile-card {
		gap: 13px;
		padding: 14px 16px 16px;
	}

	.public-profile-avatar {
		width: 76px;
		height: 76px;
		font-size: 26px;
	}

	.public-profile-edit-button,
	.public-profile-follow-button,
	.public-profile-settings-button,
	.public-profile-action-user-button {
		min-height: 42px;
		font-size: 13px;
	}

	.public-profile-follow-stats {
		gap: 15px;
		font-size: 13px;
	}

	.public-profile-main-tab {
		padding: 0 5px;
		font-size: 13px;
	}

	.public-profile-activity-tab {
		padding: 0 12px;
		font-size: 12px;
	}

	.public-profile-private-section {
		padding: 30px 16px;
	}
}

/* =========================
   Badge And Title Panel
========================= */

.public-profile-achievement-section +
.public-profile-achievement-section {
	margin-top: 28px;
}

.public-profile-achievement-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.public-profile-achievement-heading h2 {
	margin: 0;
	color: #111827;
	font-size: 17px;
	font-weight: 850;
	line-height: 1.4;
}

.public-profile-achievement-heading p {
	margin: 0;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.45;
	text-align: right;
}


/* =========================
   Badge Grid
========================= */

.public-profile-achievement-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.public-profile-achievement-item {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	min-height: 160px;
	padding: 14px 8px 11px;
	border: 1px solid #e2e8f0;
	border-radius: 15px;
	background: #ffffff;
	text-align: center;
	box-sizing: border-box;
}

.public-profile-achievement-item.is-equipped {
	border-color: #93c5fd;
	background: #eff6ff;
}

.public-profile-achievement-item.is-locked {
	background: #f8fafc;
}


/* =========================
   Badge Icon
========================= */

.public-profile-achievement-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	background: transparent;
	overflow: visible;
}

.public-profile-achievement-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: none !important;
	opacity: 1;
}

/* 미획득 배지만 회색으로 표시 */
.public-profile-achievement-item.is-locked
.public-profile-achievement-icon img {
	filter:
		grayscale(1)
		saturate(0)
		brightness(0.78)
		contrast(1.12) !important;
	opacity: 0.58;
}


/* =========================
   Badge Information
========================= */

.public-profile-achievement-info {
	display: grid;
	justify-items: center;
	gap: 5px;
	width: 100%;
	min-width: 0;
}

.public-profile-achievement-info h3 {
	margin: 0;
	color: #1e293b;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.public-profile-achievement-info p {
	margin: 0;
	color: #64748b;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	word-break: keep-all;
	overflow-wrap: break-word;
}


/* =========================
   Badge Labels And Progress
========================= */

.public-profile-equipped-label,
.public-profile-unlocked-label,
.public-profile-achievement-progress span,
.public-profile-title-progress {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
}

.public-profile-equipped-label {
	background: #2563eb;
	color: #ffffff;
}

.public-profile-achievement-item
.public-profile-equipped-label {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 1;
}

.public-profile-unlocked-label {
	background: #dcfce7;
	color: #15803d;
}

.public-profile-achievement-progress span,
.public-profile-title-progress {
	background: #e2e8f0;
	color: #64748b;
}

/* =========================
   Title Grid
========================= */

.public-profile-title-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.public-profile-title-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 122px;
	padding: 13px 6px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 15px;
	background: #ffffff;
	text-align: center;
	box-sizing: border-box;
}

.public-profile-title-item.is-locked {
	background: #f8fafc;
}

/* 획득했지만 대표 칭호가 아닌 경우 */
.public-profile-title-item.is-unlocked {
	background: #FAFCFF;
}

/* 대표 칭호 - 대표 배지와 같은 선택 스타일 */
.public-profile-title-item.is-equipped {
	border-color: #93c5fd;
	background: #eff6ff;
	box-shadow: none;
}

/* =========================
   Title Information
========================= */

.public-profile-title-info {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
}

.public-profile-title-info h3 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: 22px;
	margin: 0;
	padding: 0 7px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #475569;
	background: #f1f5f9;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-sizing: border-box;
}

/* =========================
   Title Label Colors
========================= */

/* 가성비 헌터 */
.public-profile-title-item.is-unlocked.is-blue
.public-profile-title-info h3 {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
}

/* 미디어 원정대 */
.public-profile-title-item.is-unlocked.is-red
.public-profile-title-info h3 {
	border-color: #fecaca;
	background: #fff1f2;
	color: #e11d48;
}

/* 고독한 미식가 */
.public-profile-title-item.is-unlocked.is-yellow
.public-profile-title-info h3 {
	border-color: #fde68a;
	background: #fffbeb;
	color: #b45309;
}

/* 트로피 수집가 */
.public-profile-title-item.is-unlocked.is-gold
.public-profile-title-info h3 {
	border-color: #fcd34d;
	background: #fef3c7;
	color: #a16207;
}

/* 행운의 승부사 */
.public-profile-title-item.is-unlocked.is-purple
.public-profile-title-info h3 {
	border-color: #ddd6fe;
	background: #f5f3ff;
	color: #7c3aed;
}

/* 런닝맨 */
.public-profile-title-item.is-unlocked.is-emerald
.public-profile-title-info h3 {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #059669;
}

/* 운영진 */
.public-profile-title-item.is-unlocked.is-sky
.public-profile-title-info h3 {
	border-color: #bae6fd;
	background: #f0f9ff;
	color: #2272EB;
}

.public-profile-title-info p {
	margin: 0;
	color: #64748b;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
	word-break: keep-all;
	overflow-wrap: break-word;
}


/* 대표 칭호를 카드 왼쪽 상단에 표시 */
.public-profile-title-item
.public-profile-equipped-label {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 1;
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 380px) {
	.public-profile-achievement-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.public-profile-achievement-heading p {
		text-align: left;
	}

	.public-profile-achievement-grid {
		gap: 7px;
	}

	.public-profile-achievement-item {
		min-height: 154px;
		padding: 12px 6px 10px;
	}

	.public-profile-achievement-icon {
		width: 46px;
		height: 46px;
	}

	.public-profile-achievement-info h3 {
		font-size: 12px;
	}

	.public-profile-achievement-info p {
		font-size: 10px;
	}


	/* 칭호 */
.public-profile-title-list {
	gap: 6px;
}

.public-profile-title-item {
	min-height: 116px;
	padding: 12px 5px 9px;
}

.public-profile-title-info h3 {
	min-height: 21px;
	padding: 0 5px;
	font-size: 10px;
}

.public-profile-title-info p {
	font-size: 11px;
	line-height: 1.35;
}
}

@media (max-width: 340px) {
	.public-profile-title-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.public-profile-title-item {
		min-height: 120px;
		padding: 13px 7px 10px;
	}

	.public-profile-title-info h3 {
		padding: 0 7px;
		font-size: 10px;
	}

	.public-profile-title-info p {
		font-size: 11px;
	}
}

/* =========================
   Profile Edit Modal
========================= */

.public-profile-edit-modal[hidden] {
	display: none;
}

.public-profile-edit-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	z-index: 100000;
	box-sizing: border-box;
}

.public-profile-modal-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.52);
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-edit-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 448px;
	max-height: min(88vh, 760px);
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	z-index: 1;
}

.public-profile-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.public-profile-modal-header h2 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.4;
}

.public-profile-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-modal-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.public-profile-edit-form {
	display: grid;
	gap: 16px;
	min-height: 0;
	padding-right: 2px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.public-profile-edit-image-setting {
	display: flex;
	align-items: center;
	gap: 15px;
}

.public-profile-edit-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	border: 3px solid #dbeafe;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-size: 26px;
	font-weight: 850;
	overflow: hidden;
	box-sizing: border-box;
}

.public-profile-edit-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.public-profile-edit-image-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.public-profile-image-select,
.public-profile-image-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #334155;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	box-sizing: border-box;
}

.public-profile-image-select input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.public-profile-edit-field {
	display: grid;
	gap: 8px;
}

.public-profile-edit-field-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.public-profile-edit-field-heading label,
.public-profile-appearance-fieldset legend {
	color: #1e293b;
	font-size: 13px;
	font-weight: 850;
}

.public-profile-edit-field-heading span {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
}

.public-profile-edit-field-heading b {
	font: inherit;
}

.public-profile-edit-field input[type="text"] {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1px solid #cbd5e1;
	border-radius: 11px;
	background: #ffffff;
	color: #1e293b;
	font-family: inherit;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.public-profile-edit-field input[type="text"]:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.public-profile-appearance-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.public-profile-appearance-fieldset legend {
	margin-bottom: 9px;
	padding: 0;
}

.public-profile-choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.public-profile-choice-item {
	position: relative;
	display: inline-flex;
}

.public-profile-choice-item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.public-profile-choice-item > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	color: #475569;
	font-size: 12px;
	font-weight: 800;
	box-sizing: border-box;
}

.public-profile-choice-item img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* 대표 배지·대표 칭호 선택 상태 */
.public-profile-choice-item input:checked + span {
	border-color: #60a5fa;
	box-shadow: 0 0 0 2px #3b82f6 inset;
}

/* =========================
   Profile Edit Save
========================= */

.public-profile-modal-save {
	width: 100%;
	min-height: 44px;
	padding: 0 18px;

	border: 0;
	border-radius: 12px;

	background: #2563eb;
	color: #ffffff;

	font-family: inherit;
	font-size: 14px;
	font-weight: 800;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
}

.public-profile-modal-save:hover,
.public-profile-modal-save:focus {
	background: #1d4ed8;
	outline: none;
}

.public-profile-modal-save:disabled {
	opacity: 0.6;
	cursor: default;
}

.public-profile-modal-message {
	min-height: 20px;
	margin: -2px 0;

	color: #16a34a;

	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.public-profile-modal-message.is-error {
	color: #dc2626;
}

/* =========================
   Public Profile Link
========================= */

.account-profile-avatar-link,
.account-profile-name-link {
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
	-webkit-tap-highlight-color: transparent;
}

.account-profile-avatar-link {
	display: block;
	flex: 0 0 auto;
	border-radius: 50%;
}

.account-profile-name-link {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	border-radius: 6px;
}

.account-profile-avatar-link:hover,
.account-profile-avatar-link:focus,
.account-profile-avatar-link:active,
.account-profile-name-link:hover,
.account-profile-name-link:focus,
.account-profile-name-link:active {
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
}

.account-profile-name-link .account-profile-name {
	color: inherit;
	text-decoration: none !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.account-profile-avatar-link:hover .account-avatar {
	transform: scale(1.03);
}

.account-profile-avatar-link:focus-visible,
.account-profile-name-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
}

.account-avatar {
	transition: transform 0.18s ease;
}

/* =========================
   Equipped Badge & Title
========================= */

.public-profile-avatar-wrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	isolation: isolate;
}

.public-profile-avatar-wrap .public-profile-avatar {
	position: relative;
	z-index: 1;
}

.public-profile-equipped-badge {
	position: absolute;
	right: -8px;
	bottom: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
	z-index: 2;
	overflow: visible;
	pointer-events: none;
}

.public-profile-equipped-badge img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: none !important;
	opacity: 1;
}

.public-profile-name-row {
	flex-wrap: nowrap;
	max-width: 100%;
}

.public-profile-nickname {
	min-width: 0;
}

.public-profile-equipped-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}


/* =========================
   Equipped Title Colors
========================= */

/* 가성비 헌터 */
.public-profile-equipped-title.is-blue {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
}

/* 미디어 원정대 */
.public-profile-equipped-title.is-red {
	border-color: #fecaca;
	background: #fff1f2;
	color: #e11d48;
}

/* 고독한 미식가 */
.public-profile-equipped-title.is-yellow {
	border-color: #fde68a;
	background: #fffbeb;
	color: #b45309;
}

/* 트로피 수집가 */
.public-profile-equipped-title.is-gold {
	border-color: #fcd34d;
	background: #fef3c7;
	color: #a16207;
}

/* 행운의 승부사 */
.public-profile-equipped-title.is-purple {
	border-color: #ddd6fe;
	background: #f5f3ff;
	color: #7c3aed;
}

/* 런닝맨 */
.public-profile-equipped-title.is-emerald {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #059669;
}

/* 운영진 */
.public-profile-equipped-title.is-sky {
	border-color: #bae6fd;
	background: #f0f9ff;
	color: #2272EB;
}

/* =========================
   Premium Title Colors
========================= */

/* 출석왕 */
.public-profile-equipped-title.is-attendance-king,
.public-profile-title-item.is-unlocked.is-attendance-king
.public-profile-title-info h3,
.public-profile-title-choice.is-attendance-king > span {
	border-color: #bae6fd;
	background: #e0f2fe;
	color: #0369a1;
}

/* VIP */
.public-profile-equipped-title.is-vip,
.public-profile-title-item.is-unlocked.is-vip
.public-profile-title-info h3,
.public-profile-title-choice.is-vip > span {
	border-color: #7dd3fc;
	background:
		linear-gradient(
			135deg,
			#dbeafe 0%,
			#e0f2fe 48%,
			#bfdbfe 100%
		);
	color: #1d4ed8;
}

/* 식객 */
.public-profile-equipped-title.is-food-master,
.public-profile-title-item.is-unlocked.is-food-master
.public-profile-title-info h3,
.public-profile-title-choice.is-food-master > span {
	border-color: #fbbf24;
	background:
		linear-gradient(
			135deg,
			#fff7ed 0%,
			#fef3c7 48%,
			#fed7aa 100%
		);
	color: #b45309;
}

/* 우승 청부사 */
.public-profile-equipped-title.is-game-champion,
.public-profile-title-item.is-unlocked.is-game-champion
.public-profile-title-info h3,
.public-profile-title-choice.is-game-champion > span {
	border-color: #f59e0b;
	background:
		linear-gradient(
			135deg,
			#fff7c2 0%,
			#fcd34d 48%,
			#f59e0b 100%
		);
	color: #78350f;
}

/* 행운 정복자 */
.public-profile-equipped-title.is-luck-conqueror,
.public-profile-title-item.is-unlocked.is-luck-conqueror
.public-profile-title-info h3,
.public-profile-title-choice.is-luck-conqueror > span {
	border-color: #c4b5fd;
	background:
		linear-gradient(
			135deg,
			#f5f3ff 0%,
			#ddd6fe 48%,
			#c4b5fd 100%
		);
	color: #6d28d9;
}

/* VVIP */
.public-profile-equipped-title.is-vvip,
.public-profile-title-item.is-unlocked.is-vvip
.public-profile-title-info h3,
.public-profile-title-choice.is-vvip > span {
	border-color: #fb923c;
	background:
		linear-gradient(
			135deg,
			#fff7ed 0%,
			#fdba74 48%,
			#f97316 100%
		);
	color: #9a3412;
}

/* =========================
   Profile Settings Modal
========================= */

body.public-profile-modal-open {
	overflow: hidden;
}

.public-profile-settings-modal[hidden] {
	display: none;
}

.public-profile-settings-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	z-index: 99999;
	box-sizing: border-box;
}

.public-profile-settings-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.48);
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-settings-dialog {
	position: relative;
	width: 100%;
	max-width: 448px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
	box-sizing: border-box;
	z-index: 1;
}

.public-profile-settings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.public-profile-settings-header h2 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.4;
}

.public-profile-settings-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-settings-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.public-profile-settings-form {
	display: grid;
	gap: 14px;
}

.public-profile-privacy-setting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px;
	border-radius: 14px;
	background: #f8fafc;
}

.public-profile-privacy-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.public-profile-privacy-copy strong {
	color: #1e293b;
	font-size: 14px;
	font-weight: 800;
}

.public-profile-privacy-copy small {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	word-break: keep-all;
}

.public-profile-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.public-profile-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.public-profile-switch > span {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.18s ease;
}

.public-profile-switch > span::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
	content: "";
	transition: transform 0.18s ease;
}

.public-profile-switch input:checked + span {
	background: #2563eb;
}

.public-profile-switch input:checked + span::after {
	transform: translateX(20px);
}

.public-profile-switch input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.public-profile-settings-message {
	min-height: 20px;
	margin: -2px 0;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.public-profile-settings-message.is-error {
	color: #dc2626;
}

.public-profile-settings-save {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: #2563eb;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-settings-save:disabled {
	opacity: 0.65;
}

@media (min-width: 600px) {
	.public-profile-settings-modal {
		align-items: center;
	}
}

@media (max-width: 380px) {
	.public-profile-equipped-title,
	.public-profile-private-badge {
		padding-right: 6px;
		padding-left: 6px;
		font-size: 10px;
	}
}

/* =========================
   Follow List Modal
========================= */

.public-profile-follow-list-modal[hidden] {
	display: none;
}

.public-profile-follow-list-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	z-index: 100000;
	box-sizing: border-box;
}

.public-profile-follow-list-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.52);
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-follow-list-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 420px;
	max-height: min(78vh, 620px);
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	overflow: hidden;
	z-index: 1;
}

.public-profile-follow-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 0 16px 0 18px;
	border-bottom: 1px solid #e8edf3;
	box-sizing: border-box;
}

.public-profile-follow-list-header h2 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.4;
}

.public-profile-follow-list-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-follow-list-close:hover,
.public-profile-follow-list-close:focus {
	background: #e2e8f0;
	color: #1e293b;
	outline: none;
}

.public-profile-follow-list-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.public-profile-follow-list-body {
	min-height: 110px;
	padding: 6px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.public-profile-follow-list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 62px;
	padding: 8px 14px;
	box-sizing: border-box;
}

.public-profile-follow-list-item + 
.public-profile-follow-list-item {
	border-top: 1px solid #f1f5f9;
}

.public-profile-follow-list-user {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.public-profile-follow-list-user:hover,
.public-profile-follow-list-user:focus {
	text-decoration: none;
	outline: none;
}

.public-profile-follow-list-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 2px solid #dbeafe;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-size: 16px;
	font-weight: 850;
	line-height: 1;
	overflow: hidden;
	box-sizing: border-box;
}

.public-profile-follow-list-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.public-profile-follow-list-avatar > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.public-profile-follow-list-name {
	min-width: 0;
	overflow: hidden;
	color: #1e293b;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.public-profile-follow-list-user:hover
.public-profile-follow-list-name {
	color: #2272EB;
}

.public-profile-follow-list-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 72px;
	min-height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: #E6F0FC;
	color: #2272EB;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-follow-list-action:hover,
.public-profile-follow-list-action:focus {
	background: #DCE9FC;
	color: #1D64D7;
	outline: none;
}

.public-profile-follow-list-action.is-following {
	background: #eef2f7;
	color: #475569;
}

.public-profile-follow-list-action.is-following:hover,
.public-profile-follow-list-action.is-following:focus {
	background: #e2e8f0;
	color: #334155;
}

.public-profile-follow-list-action:disabled {
	opacity: 0.6;
	cursor: default;
}

.public-profile-follow-list-loading,
.public-profile-follow-list-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 20px;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 650;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.public-profile-follow-list-modal {
		padding: 14px;
	}

	.public-profile-follow-list-dialog {
		max-height: 76vh;
		border-radius: 18px;
	}

	.public-profile-follow-list-header {
		min-height: 56px;
		padding-right: 13px;
		padding-left: 16px;
	}

	.public-profile-follow-list-item {
		min-height: 60px;
		padding-right: 12px;
		padding-left: 12px;
	}
}

@media (max-width: 380px) {
	.public-profile-follow-list-avatar {
		width: 39px;
		height: 39px;
	}

	.public-profile-follow-list-name {
		font-size: 13px;
	}

	.public-profile-follow-list-action {
		min-width: 66px;
		padding-right: 10px;
		padding-left: 10px;
		font-size: 11px;
	}
}

/* =========================
   Public Map List
========================= */

.public-profile-map-section {
	padding: 8px 0;
}

.public-profile-map-list {
	display: grid;
}

.public-profile-map-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 68px;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid #eef2f7;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.public-profile-map-item:last-child {
	border-bottom: 0;
}

.public-profile-map-item:hover,
.public-profile-map-item:focus {
	background: #f8fafc;
	outline: none;
}

.public-profile-map-item-copy {
	display: grid;
	gap: 5px;
	flex: 1 1 auto;
	min-width: 0;
}

.public-profile-map-item-copy strong {
	min-width: 0;
	overflow: hidden;
	color: #1e293b;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.public-profile-map-item-copy small {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
}

.public-profile-map-item-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	color: #94a3b8;
}

.public-profile-map-item-arrow svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-map-item:hover
.public-profile-map-item-arrow {
	color: #64748b;
}

.public-profile-map-item:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================
   Public Map Modal
========================= */

.public-profile-map-modal[hidden] {
	display: none;
}

.public-profile-map-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 100001;
	box-sizing: border-box;
}

.public-profile-map-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.54);
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-map-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 430px;
	max-height: min(84vh, 680px);
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	overflow: hidden;
	z-index: 1;
}

.public-profile-map-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 16px 15px 18px;
	border-bottom: 1px solid #e8edf3;
}

.public-profile-map-heading {
	display: grid;
	gap: 5px;
	flex: 1 1 auto;
	min-width: 0;
}

.public-profile-map-heading h2 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.35;
	letter-spacing: -0.02em;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.public-profile-map-heading p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.public-profile-map-meta {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-top: 2px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.public-profile-map-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-map-close:hover,
.public-profile-map-close:focus {
	background: #e2e8f0;
	color: #1e293b;
	outline: none;
}

.public-profile-map-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.public-profile-map-body {
	min-height: 0;
	padding: 8px 16px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}


/* =========================
   Public Map Place List
========================= */

.public-profile-map-place-list {
	display: grid;
}

.public-profile-map-place {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #eef2f7;
}

.public-profile-map-place:last-child {
	border-bottom: 0;
}

.public-profile-map-place-main {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	min-width: 0;
}

.public-profile-map-place-image {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 11px;
	background: #f1f5f9;
	overflow: hidden;
	box-sizing: border-box;
}

.public-profile-map-place-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.public-profile-map-place-image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #94a3b8;
}

.public-profile-map-place-image-empty svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-map-place-copy {
	display: grid;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 1px;
}

.public-profile-map-place-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px 7px;
	min-width: 0;
}

.public-profile-map-place-line strong {
	color: #1e293b;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.45;
	word-break: keep-all;
}

.public-profile-map-place-line span {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.4;
}


/* =========================
   Public Map Memo
========================= */

.public-profile-map-place-memo {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	min-width: 0;
	margin: 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 550;
	line-height: 1.45;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.public-profile-map-place-memo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 18px;
	color: #94a3b8;
}

.public-profile-map-place-memo-icon svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-map-place-memo > span:last-child {
	min-width: 0;
}


/* =========================
   Public Map Footer
========================= */

.public-profile-map-more {
	margin: 5px 0 14px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
	text-align: center;
}

.public-profile-map-view-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	background: #E6F0FC;
	color: #2272EB;
	font-size: 14px;
	font-weight: 850;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.public-profile-map-view-button:hover,
.public-profile-map-view-button:focus {
	background: #DCE9FC;
	color: #1D64D7;
	text-decoration: none;
	outline: none;
}

.public-profile-map-view-button:focus-visible,
.public-profile-map-close:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* =========================
   Public Map Responsive
========================= */

@media (max-width: 480px) {
	.public-profile-map-modal {
		padding: 14px;
	}

	.public-profile-map-dialog {
		max-height: 82vh;
		border-radius: 18px;
	}

	.public-profile-map-header {
		padding: 16px 13px 14px 16px;
	}

	.public-profile-map-body {
		padding-right: 14px;
		padding-left: 14px;
	}

	.public-profile-map-place-image {
		width: 56px;
		height: 56px;
	}
}

@media (max-width: 380px) {
	.public-profile-map-item {
		padding-right: 13px;
		padding-left: 13px;
	}

	.public-profile-map-place-main {
		gap: 9px;
	}

	.public-profile-map-place-image {
		width: 52px;
		height: 52px;
		border-radius: 10px;
	}

	.public-profile-map-place-line strong {
		font-size: 13px;
	}

	.public-profile-map-place-line span {
		font-size: 10px;
	}

	.public-profile-map-place-memo {
		font-size: 11px;
	}
}

/* =========================
   Profile User Action
========================= */

body.babdori-modal-open {
	overflow: hidden;
}

.public-profile-user-action-modal[hidden],
.public-profile-report-modal[hidden] {
	display: none;
}

.public-profile-user-action-modal,
.public-profile-report-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	z-index: 100002;
	box-sizing: border-box;
}

.public-profile-user-action-backdrop,
.public-profile-report-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.52);
	appearance: none;
	-webkit-appearance: none;
}


/* =========================
   User Action Dialog
========================= */

.public-profile-user-action-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow:
		0 20px 55px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	z-index: 1;
}

.public-profile-user-action-header,
.public-profile-report-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.public-profile-user-action-header > div,
.public-profile-report-header > div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.public-profile-user-action-header h2,
.public-profile-report-header h2 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.public-profile-user-action-header p,
.public-profile-report-header p {
	margin: 0;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.public-profile-user-action-close,
.public-profile-report-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-user-action-close:hover,
.public-profile-user-action-close:focus,
.public-profile-report-close:hover,
.public-profile-report-close:focus {
	background: #e2e8f0;
	color: #1e293b;
	outline: none;
}

.public-profile-user-action-close svg,
.public-profile-report-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}


/* =========================
   User Action List
========================= */

.public-profile-user-action-list {
	display: grid;
	gap: 8px;
}

.public-profile-user-action-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	color: #334155;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-user-action-item:hover,
.public-profile-user-action-item:focus {
	border-color: #cbd5e1;
	background: #f1f5f9;
	outline: none;
}

.public-profile-user-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: #eef2f7;
	color: #64748b;
}

.public-profile-user-action-icon svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.public-profile-user-action-item > span:last-child {
	display: grid;
	gap: 3px;
	flex: 1 1 auto;
	min-width: 0;
}

.public-profile-user-action-item strong {
	color: #1e293b;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}

.public-profile-user-action-item small {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 550;
	line-height: 1.45;
	word-break: keep-all;
}

.public-profile-user-action-item.is-danger
.public-profile-user-action-icon {
	background: #fff1f2;
	color: #e11d48;
}

.public-profile-user-action-item.is-danger strong {
	color: #e11d48;
}

.public-profile-user-action-item.is-loading {
	opacity: 0.55;
	pointer-events: none;
	cursor: wait;
}


/* =========================
   Profile Report Dialog
========================= */

.public-profile-report-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow:
		0 20px 55px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	z-index: 1;
}

.public-profile-report-options {
	display: grid;
	gap: 7px;
}

.public-profile-report-options label {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-sizing: border-box;
}

.public-profile-report-options label:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.public-profile-report-options input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.public-profile-report-options label:has(input:checked) {
	border-color: #93c5fd;
	background: #eff6ff;
	color: #2563eb;
	box-shadow:
		0 0 0 1px #93c5fd inset;
}

.public-profile-report-options span {
	display: flex;
	align-items: center;
	gap: 9px;
}

.public-profile-report-options span::before {
	display: block;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #ffffff;
	box-sizing: border-box;
	content: "";
}

.public-profile-report-options
label:has(input:checked)
span::before {
	border: 4px solid #2563eb;
}


/* =========================
   Profile Report Actions
========================= */

.public-profile-report-actions {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr);
	gap: 8px;
	margin-top: 16px;
}

.public-profile-report-cancel,
.public-profile-report-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 11px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.public-profile-report-cancel {
	background: #eef2f7;
	color: #64748b;
}

.public-profile-report-cancel:hover,
.public-profile-report-cancel:focus {
	background: #e2e8f0;
	color: #334155;
	outline: none;
}

.public-profile-report-submit {
	background: #e11d48;
	color: #ffffff;
}

.public-profile-report-submit:hover,
.public-profile-report-submit:focus {
	background: #be123c;
	color: #ffffff;
	outline: none;
}

.public-profile-report-submit.is-loading,
.public-profile-report-submit:disabled {
	opacity: 0.55;
	pointer-events: none;
	cursor: wait;
}


/* =========================
   Modal Focus
========================= */

.public-profile-user-action-close:focus-visible,
.public-profile-user-action-item:focus-visible,
.public-profile-report-close:focus-visible,
.public-profile-report-options label:has(
	input:focus-visible
),
.public-profile-report-cancel:focus-visible,
.public-profile-report-submit:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(37, 99, 235, 0.16);
}


/* =========================
   User Action Mobile
========================= */

@media (max-width: 480px) {

	.public-profile-user-action-modal,
	.public-profile-report-modal {
		padding: 14px;
	}

	.public-profile-user-action-dialog,
	.public-profile-report-dialog {
		padding: 16px;
		border-radius: 18px;
	}

	.public-profile-user-action-item {
		min-height: 62px;
	}

	.public-profile-report-options label {
		min-height: 43px;
		font-size: 12px;
	}
}

/* =========================
   Global Confirm Priority
========================= */

.babdori-confirm {
	z-index: 100100 !important;
}

.babdori-confirm-message {
	white-space: pre-line;
}