/**
 * @file packages/ui/src/styles.css
 * @description TryOnNow 디자인 시스템 (Getcha 웹 UI 오브젝트 문법 + TryOnNow 에메랄드 그린 팔레트)
 * - 인풋: #f2f3f5 보더리스 서치바 / 52px 12px 라운드 포커스 소프트필(#f7f7f8) + 그린 인셋 링
 * - 선택 카드: 12px 라운드, #d2d2d7 1px 보더 -> 선택 시 #059669 2px 인셋 더블링(레이아웃 흔들림 방지)
 * - 버튼: 52px 12px 라운드 그린(#059669) 메인 CTA / #f2f3f5 보더리스 뉴트럴 세컨더리 버튼
 * - 서피스: 중첩 테두리 박스 대신 #f5f5f7 보더리스 톤온톤 카드 및 1px 헤어라인 디바이더
 */

/* 1) 로고 전용 빗썸고딕(Bithumb Gothic Original) 폰트 등록 — 로고에만 한정 적용 */
@font-face {
  font-family: "BithumbGothicLogo";
  src: url("./fonts/bithumb/BithumbGothicOriginal.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.fon-logo-font-text {
  font-family: "BithumbGothicLogo", sans-serif;
}

/* 2) 웹페이지·서비스 본문 전용 Pretendard 1.3.9 가변 웹폰트 등록 (전 구간 45~920 웨이트 지원) */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/pretendard/PretendardVariable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/pretendard/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  /* Getcha Surface & Neutral Hierarchy */
  --fon-bg: #f5f5f7;
  --fon-card: #ffffff;
  --fon-surface: #ffffff;
  --fon-surface-muted: #f5f5f7;
  --fon-surface-subtle: #f7f7f8;
  --fon-fill-neutral: #f2f3f5;
  --fon-fill-neutral-hover: #e7e9ee;

  /* Borders & Dividers */
  --fon-border: #dcdee3;
  --fon-border-card: #d2d2d7;
  --fon-border-strong: #86868b;
  --fon-divider: rgba(0, 0, 0, 0.08);

  /* Ink & Text Hierarchy */
  --fon-text: #181818;
  --fon-text-body: #424245;
  --fon-text-sub: #595e6a;
  --fon-text-muted: #7f8493;
  --fon-placeholder: #9499a5;
  --fon-disabled: #c7cad1;

  /* TryOnNow Emerald Green Brand Tokens (Remapped from Getcha #f34a4a / #d63c3c) */
  --fon-brand: #059669;
  --fon-brand-hover: #047857;
  --fon-brand-ink: #047857;
  --fon-brand-tint: rgba(5, 150, 105, 0.09);
  --fon-brand-tint-strong: #d1fae5;

  /* Legacy Alias Compatibility */
  --fon-primary: #181818;
  --fon-accent: #059669;
  --fon-accent-soft: rgba(5, 150, 105, 0.09);
  --fon-good: #047857;
  --fon-good-bg: rgba(5, 150, 105, 0.09);
  --fon-caution: #d97706;
  --fon-caution-bg: #fffbeb;
  --fon-warn: #dc2626;
  --fon-warn-bg: #fef2f2;
  --fon-hold: #7f8493;
  --fon-hold-bg: #f2f3f5;
  --fon-radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--fon-bg);
  color: var(--fon-text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font-family: inherit;
  letter-spacing: -0.02em;
}

/* Chrome/Safari/Firefox 숫자 기본 스핀 화살표 제거로 커머셜 앱 인풋 질감 통일 */
input[type="number"].fon-gc-input-raw {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"].fon-gc-input-raw::-webkit-inner-spin-button,
input[type="number"].fon-gc-input-raw::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html[data-fon-surface="pc"],
body[data-fon-surface="pc"] {
  min-width: 568px;
  overflow-x: auto;
}

.fon-shell {
  position: relative;
  overflow: hidden;
  width: 520px;
  min-width: 520px;
  max-width: 520px;
  flex-shrink: 0;
  margin: 24px auto;
  min-height: 760px;
  background: var(--fon-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* 신규 첫 화면: 반투명(Transparent) 프로스티드 글래스 인트로 레이어 */
.fon-shell.fon-intro-locked .fon-header,
.fon-shell.fon-intro-locked .fon-main {
  pointer-events: none;
  user-select: none;
  filter: blur(0.9px);
  opacity: 0.93;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.fon-intro-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.43) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.29) 0%,
      rgba(255, 255, 255, 0.25) 52%,
      rgba(248, 250, 249, 0.39) 100%
    );
  backdrop-filter: blur(3px) saturate(125%);
  -webkit-backdrop-filter: blur(3px) saturate(125%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  padding: 172px 24px 48px;
  text-align: center;
  animation: fonProgFadeIn 0.2s ease-out;
}

.fon-intro-brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 20px;
}

.fon-intro-cta-group {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fon-intro-cta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fon-intro-action-card {
  width: 100%;
  min-height: 154px;
  padding: 22px 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fon-intro-action-card:hover {
  transform: translateY(-2px);
}

.fon-intro-action-card:active {
  transform: translateY(0);
}

.fon-intro-action-card-primary {
  background: var(--fon-brand);
  border: 1.5px solid var(--fon-brand);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.24);
}

.fon-intro-action-card-primary:hover {
  background: var(--fon-brand-hover);
  border-color: var(--fon-brand-hover);
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.30);
}

.fon-intro-action-card-secondary {
  background: #F2F3F5;
  border: 1.5px solid #E2E5EB;
  color: #1F1F1F;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.fon-intro-action-card-secondary:hover {
  background: #EAECEF;
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand), 0 8px 20px rgba(5, 150, 105, 0.10);
}

.fon-intro-card-icon {
  width: 46px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fon-intro-action-card-primary .fon-intro-card-icon {
  background: #ffffff;
  color: var(--fon-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.fon-intro-action-card-secondary .fon-intro-card-icon {
  background: #ffffff;
  color: var(--fon-brand);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fon-intro-card-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18.6px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.fon-intro-card-sub {
  font-size: 14.4px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.fon-intro-action-card-primary .fon-intro-card-sub {
  color: rgba(255, 255, 255, 0.90);
}

.fon-intro-action-card-secondary .fon-intro-card-sub {
  color: var(--fon-text-sub);
}

.fon-intro-action-card-secondary:hover .fon-intro-card-sub {
  color: var(--fon-brand-ink);
  font-weight: 600;
}

/* 카카오 · Google 공식 브랜딩 가이드 기반 간편 로그인 버튼 */
.fon-pill-btn.fon-oauth-kakao-btn {
  height: 52px;
  border-radius: 12px;
  background: #FEE500;
  border: none;
  color: rgba(0, 0, 0, 0.85);
  font-size: 15.5px;
  font-weight: 700;
  gap: 9px;
}

.fon-pill-btn.fon-oauth-kakao-btn:hover {
  background: #F5DC00;
}

.fon-pill-btn.fon-oauth-google-btn {
  height: 52px;
  border-radius: 12px;
  background: #F2F2F2;
  border: 1px solid #E4E6EB;
  color: #1F1F1F;
  font-size: 15.5px;
  font-weight: 700;
  gap: 9px;
}

.fon-pill-btn.fon-oauth-google-btn:hover {
  background: #E8EAED;
  border-color: #D5D8DF;
}

.fon-oauth-sub-divider {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.09);
  margin: 4px 0;
}

.fon-oauth-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.fon-pill-btn.fon-oauth-sub-btn {
  height: 50px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: var(--fon-surface-subtle);
  color: var(--fon-text-sub);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.fon-pill-btn.fon-oauth-sub-btn:hover {
  background: var(--fon-fill-neutral-hover);
  border-color: rgba(0, 0, 0, 0.26);
  color: var(--fon-text);
}

.fon-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fon-divider);
  border-radius: 18px 18px 0 0;
  padding: 16px 22px 14px;
}

.fon-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

.fon-header-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.fon-step-dots.fon-step-above-logo {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  font-size: 10.5px;
  margin-bottom: 8px;
}

.fon-header-slogan-row {
  margin-top: 5px;
  padding-left: 1px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.fon-header-slogan-row .fon-header-slogan {
  line-height: 1;
  padding-bottom: 1px;
  white-space: nowrap;
}

.fon-header-slogan {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fon-text-muted);
  line-height: 1.25;
}

/* Getcha Header Compact Action Buttons (height 32px, radius 8px, #f2f3f5 borderless) */
.fon-gc-header-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: var(--fon-fill-neutral);
  color: var(--fon-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.fon-gc-header-btn:hover {
  background: var(--fon-fill-neutral-hover);
}

.fon-gc-header-btn.active {
  background: var(--fon-text);
  color: #ffffff;
}

.fon-gc-header-btn.synced {
  background: var(--fon-brand-tint);
  color: var(--fon-brand-ink);
  font-weight: 700;
}

/* 우측 상단 로그인 버튼 시인성 강화 (에메랄드 그린 솔리드 필 + 소프트 글로우) */
.fon-gc-header-login-cta {
  height: 35px;
  padding: 0 14px;
  border-radius: 9999px;
  border: none;
  background: var(--fon-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.26);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.fon-gc-header-login-cta:hover {
  background: var(--fon-brand-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.34);
}

/* Step 1 순차 포커스(Progressive Disclosure) 완료 요약 칩 및 활성 스테이지 */
@keyframes fonProgFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fon-prog-summary-stack {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fon-prog-summary-stack::-webkit-scrollbar {
  display: none;
}

.fon-prog-summary-chip {
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #eff1f4;
  color: #595e6a;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.fon-prog-summary-chip:hover {
  background: #e4e7ec;
  color: var(--fon-text);
}

.fon-prog-summary-chip .fon-chip-key {
  color: #8b909c;
  font-weight: 500;
}

.fon-prog-summary-chip .fon-chip-val {
  color: #374151;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fon-prog-prompt-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--fon-text);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.fon-prog-prompt-desc {
  margin: 0 0 18px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fon-text-sub);
  line-height: 1.5;
}

.fon-prog-active-stage {
  animation: fonProgFadeIn 0.18s ease-out;
}

.fon-prog-bright-card {
  background: #ffffff;
  border: 1.5px solid rgba(5, 150, 105, 0.34);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.08);
}

.fon-gender-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fon-gender-hero-card {
  min-height: 132px;
  padding: 20px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--fon-border-card);
  background: #ffffff;
  color: var(--fon-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.fon-gender-hero-card:hover {
  border-color: var(--fon-brand);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.11);
  transform: translateY(-1px);
}

.fon-gender-hero-card.active {
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand), 0 6px 18px rgba(5, 150, 105, 0.12);
}

.fon-gender-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--fon-surface-muted);
  color: var(--fon-text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fon-gender-hero-card:hover .fon-gender-hero-icon,
.fon-gender-hero-card.active .fon-gender-hero-icon {
  background: var(--fon-brand-tint);
  color: var(--fon-brand);
}

.fon-gender-hero-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--fon-text);
  letter-spacing: -0.02em;
}

.fon-fit-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fon-fit-card-large {
  min-height: 98px;
  padding: 15px 12px;
  border-radius: 14px;
  gap: 5px;
}

.fon-fit-card-large .fon-fit-icon-wrap {
  width: 38px;
  height: 36px;
  border-radius: 10px;
}

.fon-step-dots {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fon-brand-tint);
  font-size: 11px;
  color: var(--fon-brand-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fon-main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fon-card {
  background: var(--fon-card);
  border: none;
  border-radius: 0;
  padding: 0;
}

.fon-subtext {
  font-size: 14px;
  font-weight: 500;
  color: var(--fon-text-sub);
  margin: 0 0 18px 0;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* ============================================================================
 * Getcha UI Objects: Selection Cards, Inputs, Search Bar, Chips, Accordions
 * ============================================================================ */

/* 1. Getcha Selection Cards (2열·3열·4열 옵션 카드, 2px 그린 인셋 더블링 선택 상태) */
.fon-gc-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* 1라인: 성별(폭 축소) + 나이 인풋 나란히 배치 */
.fon-gender-age-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

/* 2라인: 키 · 몸무게 2열 와이드 인풋 배치 */
.fon-hw-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.fon-gc-choice-card.fon-gender-card {
  min-height: 50px;
  height: 50px;
  flex-direction: row;
  gap: 6px;
  padding: 0 10px;
}

.fon-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fon-text-muted);
  transition: color 0.14s ease;
}

.fon-gc-choice-card.active .fon-choice-icon {
  color: var(--fon-brand);
}

.fon-fit-pref-btn {
  padding: 12px 6px 10px;
  gap: 4px;
}

.fon-fit-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: 8px;
  color: var(--fon-text-sub);
  transition: color 0.14s ease, background-color 0.14s ease;
}

.fon-fit-pref-btn.active .fon-fit-icon-wrap {
  color: var(--fon-brand);
  background: var(--fon-brand-tint);
}

.fon-gc-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.fon-gc-choice-card {
  min-height: 52px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--fon-border-card);
  background: #ffffff;
  color: var(--fon-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
  text-align: center;
}

.fon-gc-choice-card:hover {
  border-color: var(--fon-border-strong);
}

.fon-gc-choice-card.active {
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
  background: #ffffff;
}

.fon-gc-choice-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fon-text);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.fon-gc-choice-card.active .fon-gc-choice-title {
  font-weight: 700;
  color: var(--fon-text);
}

.fon-gc-choice-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--fon-text-muted);
  line-height: 1.2;
}

.fon-gc-choice-card.active .fon-gc-choice-sub {
  color: var(--fon-brand-ink);
  font-weight: 700;
}

/* 2. Getcha Form Input Container (52px height, 12px radius, soft grey focus shift) */
.fon-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fon-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fon-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fon-label-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--fon-text-muted);
}

.fon-gc-input-box {
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fon-gc-input-box:hover {
  border-color: #b8bcc6;
}

.fon-gc-input-box:focus-within {
  background: var(--fon-surface-subtle);
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
}

.fon-gc-input-raw {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--fon-text);
  font-variant-numeric: tabular-nums;
  padding: 0;
}

.fon-gc-input-raw::placeholder {
  color: var(--fon-placeholder);
  font-weight: 400;
}

.fon-gc-unit {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fon-text-muted);
  flex-shrink: 0;
  user-select: none;
}

.fon-gc-input-box.fon-gc-input-box-stepper {
  padding: 0 8px 0 14px;
}

.fon-gc-input-raw.fon-has-stepper {
  appearance: textfield;
  -moz-appearance: textfield;
}

.fon-gc-input-raw.fon-has-stepper::-webkit-outer-spin-button,
.fon-gc-input-raw.fon-has-stepper::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fon-input-suffix-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.fon-num-stepper {
  width: 24px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid #e2e5eb;
  background: var(--fon-fill-neutral);
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.fon-num-step-btn {
  flex: 1;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fon-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.fon-num-step-btn + .fon-num-step-btn {
  border-top: 1px solid #e2e5eb;
}

.fon-num-step-btn:hover {
  background: #e4e7ee;
  color: var(--fon-brand-ink);
}

.fon-num-step-btn:active {
  background: var(--fon-brand-tint);
  color: var(--fon-brand);
}

/* 나이 입력란 내 생일 달력 트리거 버튼 및 인라인 생년월일 달력 패널 */
.fon-cal-trigger-btn {
  width: 28px;
  height: 36px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid #e2e5eb;
  background: var(--fon-fill-neutral);
  color: var(--fon-text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.fon-cal-trigger-btn:hover,
.fon-cal-trigger-btn.active {
  background: var(--fon-brand-tint);
  border-color: var(--fon-brand);
  color: var(--fon-brand-ink);
}

.fon-birth-calc-badge {
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--fon-brand-tint);
  color: var(--fon-brand-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.fon-birth-cal-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  animation: fonProgFadeIn 0.15s ease-out;
}

.fon-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fon-cal-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fon-text);
  letter-spacing: -0.02em;
}

.fon-cal-close-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  background: var(--fon-fill-neutral);
  color: var(--fon-text-sub);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.fon-cal-close-btn:hover {
  background: var(--fon-fill-neutral-hover);
  color: var(--fon-text);
}

.fon-cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fon-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e5eb;
  background: var(--fon-surface-subtle);
  color: var(--fon-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fon-cal-nav-btn:hover {
  background: var(--fon-fill-neutral-hover);
}

.fon-cal-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.fon-cal-select {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  color: var(--fon-text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.fon-cal-select:focus {
  border-color: var(--fon-brand);
}

.fon-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fon-text-muted);
  margin-bottom: 4px;
  padding: 2px 0;
}

.fon-cal-weekdays .sun {
  color: #dc2626;
}

.fon-cal-weekdays .sat {
  color: #2563eb;
}

.fon-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.fon-cal-empty-cell {
  height: 34px;
}

.fon-cal-day-btn {
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--fon-text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.fon-cal-day-btn.sun {
  color: #dc2626;
}

.fon-cal-day-btn.sat {
  color: #2563eb;
}

.fon-cal-day-btn:hover:not(:disabled) {
  background: var(--fon-brand-tint);
  color: var(--fon-brand-ink);
  font-weight: 700;
}

.fon-cal-day-btn.selected {
  background: var(--fon-brand);
  color: #ffffff;
  font-weight: 700;
}

.fon-cal-day-btn:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

/* 일반 .fon-input / .fon-select 도 Getcha 12px 라운드 규격으로 동기화 */
.fon-input,
.fon-select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--fon-border);
  border-radius: 12px;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fon-text);
  background-color: #ffffff;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* OS 기본 <select> 수직 정렬·폰트 불일치 제거용 커스텀 드롭다운 */
.fon-custom-select {
  position: relative;
  width: 100%;
}

.fon-custom-select-trigger {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 13px;
  border: 1px solid var(--fon-border);
  border-radius: 12px;
  background-color: #ffffff;
  color: var(--fon-text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.fon-custom-select-trigger:hover {
  border-color: #b8bcc6;
}

.fon-custom-select.open .fon-custom-select-trigger,
.fon-custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
}

.fon-custom-select-chevron {
  color: var(--fon-text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
}

.fon-custom-select.open .fon-custom-select-chevron {
  transform: rotate(180deg);
  color: var(--fon-brand);
}

.fon-custom-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #ffffff;
  border: 1px solid var(--fon-border);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
  flex-direction: column;
  gap: 2px;
}

.fon-custom-select.open .fon-custom-select-menu {
  display: flex;
}

.fon-custom-select.fon-custom-select-up .fon-custom-select-menu {
  top: auto;
  bottom: calc(100% + 5px);
}

.fon-custom-select-opt {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fon-text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.fon-custom-select-opt:hover {
  background: var(--fon-surface-muted);
}

.fon-custom-select-opt.selected {
  background: var(--fon-brand-tint);
  color: var(--fon-brand-ink);
  font-weight: 700;
}

.fon-input::placeholder {
  color: var(--fon-placeholder);
}

.fon-input:focus,
.fon-select:focus {
  outline: none;
  background: var(--fon-surface-subtle);
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
}

/* 3. Getcha Filled Borderless Search / URL Input Bar (#f2f3f5) */
.fon-gc-searchbar {
  height: 52px;
  padding: 0 7px 0 14px;
  border-radius: 12px;
  background: var(--fon-fill-neutral);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fon-gc-searchbar:focus-within {
  background: #ffffff;
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
}

.fon-gc-search-icon {
  color: var(--fon-placeholder);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fon-gc-searchbar:focus-within .fon-gc-search-icon {
  color: var(--fon-brand);
}

.fon-gc-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fon-text);
  padding: 0;
}

.fon-gc-search-input::placeholder {
  color: var(--fon-placeholder);
  font-weight: 400;
}

.fon-gc-clear-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #b4b8c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.fon-gc-clear-btn:hover {
  color: #7f8493;
}

.fon-gc-paste-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid #d5d8e0;
  background: #ffffff;
  color: #4b5563;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.fon-gc-paste-btn:hover {
  background: #f8fafc;
  border-color: var(--fon-brand);
  color: var(--fon-brand-ink);
}

/* 전체 페이지 공통 하단 개인정보처리방침 · 이용약관 푸터 */
.fon-global-legal-footer {
  position: relative;
  z-index: 46;
  margin-top: auto;
  padding: 14px 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9ca3af;
}

.fon-legal-link {
  border: none;
  background: none;
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #8b95a1;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fon-legal-link:hover {
  color: #374151;
}

.fon-legal-sep {
  color: #d1d5db;
  user-select: none;
}

.fon-gc-inline-submit {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: none;
  background: var(--fon-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.fon-gc-inline-submit:hover {
  background: var(--fon-brand-hover);
}

/* 4. Getcha Tonal Spec Card (#f5f5f7 borderless) & Summary Strip */
.fon-gc-surface-box {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--fon-surface-muted);
  border: none;
}

.fon-uq-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--fon-surface-muted);
  border: none;
}

.fon-change-pill-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--fon-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
  white-space: nowrap;
}

.fon-change-pill-btn:hover {
  border-color: var(--fon-border-strong);
  background: #ffffff;
}

/* 5. Getcha Primary Green & Secondary Neutral Grey CTA Buttons (52px, 12px radius) */
.fon-action-row {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 8px;
  margin-top: 20px;
}

/* [뒤로] 또는 보조 버튼이 앞에 오거나 1:1 필요한 경우 대응 */
.fon-action-row-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.fon-pill-btn {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.fon-pill-btn-primary {
  background: var(--fon-brand);
  color: #ffffff;
}

.fon-pill-btn-primary:hover {
  background: var(--fon-brand-hover);
}

.fon-pill-btn-primary:disabled {
  background: var(--fon-fill-neutral);
  color: var(--fon-disabled);
  cursor: not-allowed;
}

.fon-pill-btn-outline {
  background: var(--fon-fill-neutral);
  color: var(--fon-text);
  border: none;
}

.fon-pill-btn-outline:hover {
  background: var(--fon-fill-neutral-hover);
}

/* 6. Getcha Filter Chips & Pills (height 36px, #dcdee3 -> active #181818 or #059669) */
.fon-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fon-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  color: var(--fon-text-sub);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.fon-chip:hover {
  border-color: var(--fon-border-strong);
  color: var(--fon-text);
}

.fon-chip.active {
  background: var(--fon-text);
  color: #ffffff;
  border-color: var(--fon-text);
  font-weight: 600;
}

/* 7. Getcha Clean Hairline Accordions (+ SVG rotates 45deg when open) */
.fon-uq-accordion {
  border-top: 1px solid var(--fon-divider);
  padding: 15px 0;
}

.fon-uq-accordion:last-of-type {
  border-bottom: 1px solid var(--fon-divider);
}

.fon-uq-accordion > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fon-text);
  user-select: none;
}

.fon-uq-accordion > summary::-webkit-details-marker {
  display: none;
}

.fon-uq-accordion > summary::after {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: #6e6e73;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fon-uq-accordion[open] > summary::after {
  transform: rotate(45deg);
  background-color: var(--fon-brand);
}

/* 8. Grid Helpers & Custom Body Part Checkboxes */
.fon-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fon-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fon-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.fon-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--fon-border-card);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--fon-text);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

.fon-check-item:hover {
  border-color: var(--fon-border-strong);
}

.fon-check-item.checked {
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
  background: #ffffff;
  color: var(--fon-brand-ink);
}

.fon-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fon-brand);
  margin: 0;
  cursor: pointer;
}

.fon-checked-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.fon-checked-editor-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--fon-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fon-offset-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.fon-step-btn {
  height: 32px;
  padding: 0 2px;
  font-size: 11.5px;
  border: 1px solid var(--fon-border);
  background: #ffffff;
  color: var(--fon-text-sub);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.12s ease;
}

.fon-step-btn.active {
  background: var(--fon-brand);
  color: #ffffff;
  border-color: var(--fon-brand);
}

/* 9. Result View: Verdict Banner, Size Cards, Part Rows, Tables */
.fon-verdict-headline {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 14px;
  letter-spacing: -0.03em;
  color: var(--fon-text);
}

.fon-size-section-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--fon-text);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 2px 0 14px 0;
}

.fon-verdict-surface-box {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eefaf3;
  border: 1px solid #c8ead7;
  text-align: center;
}

.fon-verdict-headline-line {
  font-size: 17px;
  font-weight: 400;
  color: #16654e;
  letter-spacing: -0.03em;
  line-height: 1.38;
  word-break: keep-all;
}

.fon-verdict-headline-line strong {
  font-weight: 800;
  color: #065f46;
}

.fon-verdict-no-rec-note {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #3b7a62;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.fon-review-surface-box {
  padding: 14px 16px;
  text-align: center;
}

.fon-review-summary-line {
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  letter-spacing: -0.03em;
  line-height: 1.42;
  word-break: keep-all;
}

.fon-review-summary-line strong {
  font-weight: 800;
  color: #111827;
}

.fon-review-summary-line.is-unavailable {
  font-size: 14px;
  font-weight: 400;
  color: var(--fon-text-muted);
}

.fon-size-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
}

.fon-size-arrow-btn {
  width: 30px;
  height: 48px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  color: var(--fon-text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
}

.fon-size-arrow-btn:hover:not(:disabled) {
  background: #f2fbf6;
  border-color: var(--fon-brand);
  color: var(--fon-brand-ink);
}

.fon-size-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: #fafafa;
}

.fon-gc-size-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 4개 표준 폭 비율 고정 (선택·비선택 모두 흰색 배경 + 검은색 윤곽선 두께·투명도 및 크기 차이로 구분) */
.fon-size-choice-btn {
  flex: 0 0 calc((100% - 24px) * 0.213333);
  max-width: calc((100% - 24px) * 0.213333);
  min-width: 0;
  min-height: 50px;
  padding: 6px 6px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: none;
  gap: 4px;
  transition: flex-basis 0.16s ease, min-height 0.16s ease, border-color 0.14s ease, border-width 0.14s ease, box-shadow 0.14s ease;
}

.fon-size-choice-btn:not(.active):hover {
  border-color: rgba(0, 0, 0, 0.34);
}

.fon-size-choice-btn:not(.active) .fon-gc-choice-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.46);
}

.fon-size-choice-btn:not(.active) .fon-gc-choice-sub {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.36);
}

.fon-size-choice-btn.active {
  flex: 0 0 calc((100% - 24px) * 0.36);
  max-width: calc((100% - 24px) * 0.36);
  min-height: 68px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fon-size-choice-btn.active .fon-gc-choice-title {
  font-size: 20px;
  font-weight: 800;
  color: rgba(0, 0, 0, 1);
}

.fon-size-rec-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #e6f7ee;
  border: 1px solid rgba(5, 150, 105, 0.28);
  color: var(--fon-brand-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fon-size-choice-btn.active .fon-size-rec-tag {
  background: var(--fon-brand);
  border-color: var(--fon-brand);
  color: #ffffff;
  font-size: 10.5px;
  padding: 2.5px 8.5px;
}

.fon-size-rec-tag.is-fallback {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.fon-sil-ease-bar {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.fon-sil-ease-bar.is-hint {
  background: var(--fon-surface-muted);
  color: var(--fon-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.fon-sil-ease-bar.has-part {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.28);
  justify-content: space-between;
}

.fon-sil-ease-bar.has-part.is-amber {
  background: #fff7ed;
  border-color: #fdba74;
}

.fon-sil-ease-bar.has-part.is-red {
  background: #fef2f2;
  border-color: #fca5a5;
}

.fon-sil-ease-part {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fon-text);
}

.fon-sil-ease-val {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fon-underline-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--fon-border);
  margin-bottom: 14px;
  overflow-x: auto;
}

.fon-underline-tab {
  flex: 1;
  min-width: 48px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--fon-disabled);
  transition: all 0.15s ease;
}

.fon-underline-tab.active {
  color: var(--fon-text);
  border-bottom-color: var(--fon-brand);
  font-weight: 700;
}

.fon-underline-tab-rec {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fon-brand-ink);
  line-height: 1;
}

.fon-underline-tab-name {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fon-simple-part-table {
  border-top: 1px solid var(--fon-divider);
  margin-top: 12px;
}

.fon-simple-part-row {
  border-bottom: 1px solid var(--fon-divider);
  padding: 13px 2px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.fon-simple-part-row:hover {
  background: var(--fon-surface-subtle);
}

.fon-simple-part-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.fon-simple-part-name {
  font-weight: 600;
  color: var(--fon-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fon-simple-part-status {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fon-simple-part-detail {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fon-surface-muted);
  font-size: 12px;
  color: var(--fon-text-sub);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

/* 10. Utility Buttons, Badges, Modal Chrome & Tables */
.fon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
}

.fon-btn-primary {
  background: var(--fon-brand);
  color: #ffffff;
}

.fon-btn-primary:hover {
  background: var(--fon-brand-hover);
}

.fon-btn-outline {
  background: #ffffff;
  border-color: var(--fon-border);
  color: var(--fon-text);
}

.fon-btn-outline:hover {
  border-color: var(--fon-border-strong);
}

.fon-gc-util-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: var(--fon-surface-subtle);
  color: var(--fon-text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.fon-gc-util-link:hover {
  background: var(--fon-fill-neutral-hover);
  color: var(--fon-text);
}

.fon-gc-close-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--fon-fill-neutral);
  color: var(--fon-text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.fon-gc-close-circle:hover {
  background: var(--fon-fill-neutral-hover);
}

.fon-gc-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fon-brand-tint);
  color: var(--fon-brand-ink);
  font-size: 11px;
  font-weight: 700;
}

.fon-source-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid var(--fon-border);
  color: var(--fon-text-sub);
}

.fon-source-tag.inferred {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.fon-source-tag.direct {
  background: var(--fon-brand-tint);
  border-color: transparent;
  color: var(--fon-brand-ink);
}

.fon-spec-table,
.fon-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.fon-spec-table th,
.fon-spec-table td,
.fon-grid-table th,
.fon-grid-table td {
  border-bottom: 1px solid var(--fon-divider);
  padding: 9px 6px;
  text-align: center;
}

.fon-spec-table th,
.fon-grid-table th {
  background: var(--fon-surface-muted);
  font-weight: 600;
  color: var(--fon-text-sub);
  font-size: 11.5px;
}

.fon-spec-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 4px 2px;
  background: transparent;
}

.fon-spec-input:focus {
  outline: none;
  border-color: var(--fon-brand);
  background: var(--fon-surface-subtle);
}

.fon-ad-slot {
  margin-top: 10px;
  border: 1px dashed var(--fon-border);
  background: var(--fon-surface-subtle);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--fon-text-muted);
}

/* =============================================================================
 * PC 전용 원페이지 스튜디오 뷰 (PcDesktopView — 고정 규격 1200px 2단 레이아웃)
 * ============================================================================= */
.fon-pc-shell {
  min-width: 1040px;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
}

.fon-pc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fon-divider);
  margin: 0 -24px 20px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fon-pc-url-bar {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fon-pc-workspace {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 22px;
  align-items: start;
}

.fon-pc-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.fon-pc-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.fon-pc-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fon-pc-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fon-text);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.02em;
}

.fon-pc-visual-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.fon-pc-verdict-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--fon-surface-muted);
  border: none;
  margin-bottom: 14px;
}

.fon-fit-pref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.fon-fit-pref-btn {
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--fon-border-card);
  background: #ffffff;
  color: var(--fon-text-sub);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.fon-fit-pref-btn.active {
  background: #ffffff;
  color: var(--fon-brand-ink);
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
  font-weight: 700;
}

/* ============================================================================
   운영_패키지_v1: 헤더 우측 [첫화면 / 전단계], 상단 50:50 2열 카드버튼,
   대표 썸네일 상품 표, 사이즈 계산 진척률 모달 & 반투명 검정 원형 스피너 버퍼
   ============================================================================ */

.fon-header-right-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  min-width: 82px;
}

.fon-header-right-stack > button {
  width: 100%;
  height: 31px;
  border-radius: 9px;
}

.fon-header-subnav-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fon-header-subnav-btn {
  height: 21px;
  padding: 0 7.5px;
  border-radius: 9999px;
  border: 1px solid var(--fon-border-card);
  background: #ffffff;
  color: var(--fon-text-sub);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.fon-header-subnav-btn:hover:not(:disabled) {
  background: var(--fon-fill-neutral);
  color: var(--fon-text);
  border-color: #cbd5e1;
}

.fon-header-subnav-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.fon-top-half-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fon-half-action-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--fon-border-card);
  background: var(--fon-surface-muted);
  color: var(--fon-text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.fon-half-action-btn.fon-half-standalone {
  width: calc(50% - 5px);
  margin-bottom: 14px;
}

.fon-half-action-btn:hover {
  background: #ecedf0;
  border-color: #cfd4dc;
  transform: translateY(-1px);
}

.fon-half-action-btn-musinsa {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.14);
}

.fon-half-action-btn-musinsa:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.fon-half-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fon-half-action-icon-body,
.fon-half-action-icon-prod {
  background: #ffffff;
  color: var(--fon-brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fon-half-action-icon-musinsa {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.fon-half-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.fon-half-action-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fon-half-action-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--fon-text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.fon-half-action-btn-musinsa .fon-half-action-sub {
  color: #cbd5e1;
}

/* 선택 상품 대표 썸네일 + 4행 테이블 카드 */
.fon-prod-summary-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-radius: 14px;
  background: var(--fon-surface-muted);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.fon-prod-thumb-box {
  width: 92px;
  height: 108px;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fon-prod-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fon-prod-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.fon-prod-meta-table tr + tr {
  border-top: 1px solid rgba(0, 0, 0, 0.055);
}

.fon-prod-meta-table th {
  width: 66px;
  padding: 5.5px 8px 5.5px 0;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fon-text-muted);
  vertical-align: middle;
  white-space: nowrap;
}

.fon-prod-meta-table td {
  padding: 5.5px 0;
  color: var(--fon-text);
  vertical-align: middle;
  word-break: keep-all;
}

.fon-prod-name-cell {
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 단계별 진행 & 서비스 지연용 반투명 검정 배경 + 원형 스피너 중간 버퍼 */
@keyframes fonSpinCircle {
  to {
    transform: rotate(360deg);
  }
}

.fon-step-buffer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.fon-buffer-circle-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, 0.26);
  border-top-color: #10b981;
  animation: fonSpinCircle 0.72s linear infinite;
}

.fon-buffer-caption {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* 추천 사이즈 확인 전용 진척률(Progress Bar) 로딩 모달 */
.fon-calc-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fon-calc-progress-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fon-calc-progress-title {
  margin: 12px 0 6px;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--fon-text);
  letter-spacing: -0.03em;
}

.fon-calc-progress-stage {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fon-text-muted);
}

.fon-calc-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}

.fon-calc-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  transition: width 0.2s ease;
}

.fon-calc-pct-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--fon-brand-ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   보유 옷 사이즈 체형 보정 에디터 (상의 8종 · 하의 3종 확장형 카탈로그 UI)
   ============================================================================ */
.fon-closet-calib-editor {
  display: flex;
  flex-direction: column;
}

/* 1라인 8열(상의 8종 1줄 / 하의 3종 1줄) 무아이콘 텍스트·등록여부 타일 그리드 */
.fon-cc-8col-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fon-cc-col-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--fon-text-sub);
  padding-left: 2px;
}

.fon-cc-8col-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.fon-cc-garment-tile {
  min-height: 54px;
  padding: 6px 3px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f5f6f8;
  color: #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.fon-cc-garment-tile:hover:not(.active) {
  background: #eceff3;
  border-color: #cbd5e1;
}

.fon-cc-garment-tile.is-saved:not(.active) {
  background: #ffffff;
  border-color: #bfe6d1;
  color: #181818;
}

.fon-cc-garment-tile.active {
  background: var(--fon-brand);
  border-color: var(--fon-brand-ink);
  color: #ffffff;
  box-shadow: 0 3px 9px rgba(5, 150, 105, 0.24);
}

.fon-cc-tile-name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.fon-cc-garment-tile.active .fon-cc-tile-name {
  color: #ffffff;
  font-weight: 800;
}

.fon-cc-tile-status {
  padding: 2px 5px;
  border-radius: 9999px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.fon-cc-tile-status.saved {
  background: rgba(5, 150, 105, 0.12);
  color: var(--fon-brand-ink);
}

.fon-cc-tile-status.unsaved {
  background: transparent;
  color: #9ca3af;
  font-weight: 600;
}

.fon-cc-garment-tile.active .fon-cc-tile-status {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.fon-cc-empty-hint {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--fon-surface-muted);
  color: var(--fon-text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* 버튼 클릭 시 바로 아래에 열리는 인라인 실측 입력 패널 (좌: 의류 도해 + 태그 / 우: 전 부위 인풋) */
.fon-cc-inline-drawer {
  margin-top: 12px;
  padding: 14px;
  border-radius: 15px;
  background: var(--fon-surface-muted);
  border: 1px solid rgba(5, 150, 105, 0.22);
  animation: fonProgFadeIn 0.15s ease-out;
}

.fon-cc-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.fon-cc-drawer-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--fon-text);
  letter-spacing: -0.02em;
}

.fon-cc-drawer-sub {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fon-brand-ink);
}

.fon-cc-fitfeel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fon-cc-fitfeel-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fon-text-sub);
  white-space: nowrap;
}

.fon-cc-fitfeel-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  gap: 5px;
}

.fon-cc-fitfeel-chip {
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #e5e8ec;
  background: #f8f9fa;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.fon-cc-fitfeel-chip:hover {
  background: #f1f3f5;
  color: var(--fon-text);
}

.fon-cc-fitfeel-chip.active {
  background: var(--fon-brand-tint);
  border-color: var(--fon-brand);
  color: var(--fon-brand-ink);
  font-weight: 700;
}

.fon-cc-drawer-split {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.fon-cc-diagram-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fon-cc-diagram-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--fon-text-muted);
  margin-bottom: 4px;
}

.fon-cc-diagram-svg {
  display: block;
  max-height: 215px;
}

.fon-cc-diagram-caption {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  font-size: 11px;
  line-height: 1.4;
  color: var(--fon-text-sub);
  text-align: center;
  word-break: keep-all;
}

.fon-cc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fon-cc-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--fon-border);
  cursor: text;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.fon-cc-input-row.is-empty {
  background: #fafafa;
  border-color: #ebeef2;
}

.fon-cc-input-row.focused {
  border-color: var(--fon-brand);
  box-shadow: inset 0 0 0 1px var(--fon-brand);
  background: #fcfffd;
}

.fon-cc-input-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fon-text);
  cursor: text;
  flex-shrink: 0;
  user-select: none;
  white-space: nowrap;
  transition: color 0.14s ease;
}

.fon-cc-input-row.is-empty .fon-cc-input-label {
  color: #9ca3af;
  font-weight: 500;
}

.fon-cc-input-row.focused .fon-cc-input-label {
  color: var(--fon-brand-ink);
  font-weight: 700;
}

.fon-cc-input-box {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  cursor: text;
}

.fon-cc-num-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 36px;
  text-align: right;
  font-size: 13.5px;
  font-weight: 700;
  cursor: text;
  appearance: textfield;
  -moz-appearance: textfield;
}

.fon-cc-num-input::-webkit-outer-spin-button,
.fon-cc-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fon-cc-num-input::placeholder {
  color: #b0b8c1;
  font-size: 12px;
  font-weight: 500;
}

.fon-cc-drawer-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* [내 정보] 모달 OAuth(카카오·Google) 연동 상태 박스 */
.fon-acc-oauth-status-card {
  padding: 11px 12px;
  border-radius: 13px;
  margin-bottom: 14px;
  border: 1px solid var(--fon-border-card);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fon-acc-oauth-status-card.linked {
  background: var(--fon-brand-tint);
  border-color: rgba(5, 150, 105, 0.22);
}

.fon-acc-oauth-status-card.unlinked {
  background: var(--fon-surface-muted);
  border-color: rgba(0, 0, 0, 0.06);
}

.fon-acc-oauth-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.fon-acc-oauth-status-card.linked .fon-acc-oauth-status-head {
  color: var(--fon-brand-ink);
}

.fon-acc-oauth-status-card.unlinked .fon-acc-oauth-status-head {
  color: var(--fon-text-sub);
}

.fon-acc-sync-mini-btn {
  border: none;
  background: #ffffff;
  color: var(--fon-brand-ink);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fon-acc-provider-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fon-acc-provider-pill {
  padding: 7px 10px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}

.fon-acc-provider-pill.active {
  border-color: rgba(5, 150, 105, 0.34);
}

.fon-acc-provider-state {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fon-acc-provider-state.on {
  color: var(--fon-brand-ink);
}

.fon-acc-provider-state.off {
  color: var(--fon-text-muted);
}

/* [내 정보] 모달 내 좌우 2열 선택 카드 (신체 사이즈 / 보유 옷 사이즈) */
.fon-acc-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fon-acc-choice-card {
  padding: 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--fon-border-card);
  background: var(--fon-surface-muted);
  color: var(--fon-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.fon-acc-choice-card:hover {
  background: #f0fdf4;
  border-color: var(--fon-brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.fon-acc-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--fon-brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.fon-acc-choice-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fon-text);
}

.fon-acc-choice-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fon-text-muted);
  font-variant-numeric: tabular-nums;
}

.fon-acc-choice-badge {
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--fon-text-sub);
  font-size: 11px;
  font-weight: 700;
}

.fon-acc-choice-badge.has-data {
  background: var(--fon-brand-tint);
  border-color: rgba(5, 150, 105, 0.22);
  color: var(--fon-brand-ink);
}

/* [내 정보] 하단 보조 액션(로그아웃 / 저장 데이터 삭제) — 시선을 뺏지 않는 차분한 톤 */
.fon-acc-quiet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.fon-acc-quiet-btn {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #ebedf0;
  background: #fafafa;
  color: #8b95a1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.fon-acc-quiet-btn:hover {
  background: #f2f4f6;
  border-color: #dde1e6;
  color: #4e5968;
}

.fon-acc-quiet-btn.fon-acc-quiet-btn-green {
  background: #f2fbf6;
  border-color: #d7f0e2;
  color: #3b8266;
}

.fon-acc-quiet-btn.fon-acc-quiet-btn-green:hover {
  background: #e6f7ee;
  border-color: #bfe6d1;
  color: #266b50;
}

.fon-acc-quiet-btn.fon-acc-quiet-btn-red {
  background: #fdf4f4;
  border-color: #f5dada;
  color: #b85c5c;
}

.fon-acc-quiet-btn.fon-acc-quiet-btn-red:hover {
  background: #fbeaea;
  border-color: #ecc4c4;
  color: #9e4242;
}

/* ============================================================================
   4대 타겟 전용 분리 아키텍처 (PC 고정 규격 / 모바일 전용 앱 / 크롬 확장 사이드패널)
   - @media 반응형 구겨짐 없이 각 서피스(data-fon-surface)의 화면 기하구조에 맞춰 전용 설계
   ============================================================================ */

/* 공통 2단 헤더 & 가로형 인트로 카드 베이스 (모바일·확장 서피스 전용) */
.fon-header-tier-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.fon-header-tier-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.fon-header-tier-brand .fon-step-above-logo {
  margin-bottom: 6px;
}

.fon-header-tier-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fon-header-tier-sub {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fon-header-tier-sub .fon-header-slogan {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.fon-intro-cta-stack-compact {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fon-intro-row-card {
  width: 100%;
  min-height: 76px;
  padding: 15px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fon-intro-row-card:hover {
  transform: translateY(-1px);
}

.fon-intro-row-card:active {
  transform: translateY(0);
}

.fon-intro-row-card .fon-intro-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--fon-brand);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fon-intro-row-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.fon-intro-row-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.fon-intro-row-sub {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.fon-intro-action-card-primary .fon-intro-row-sub {
  color: rgba(255, 255, 255, 0.88);
}

.fon-intro-action-card-secondary .fon-intro-row-sub {
  color: var(--fon-text-sub);
}

/* ----------------------------------------------------------------------------
   [Target 2] 모바일 전용 버전 (surfaceVariant === 'mobile', 360px ~ 430px 스마트폰)
   ---------------------------------------------------------------------------- */
html[data-fon-surface="mobile"],
body[data-fon-surface="mobile"] {
  background-color: #eef0f4;
  min-width: 320px;
  overflow-x: hidden;
}

.fon-shell.fon-surface-mobile {
  overflow: visible;
  width: 100%;
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

#fitonnow-root:not(:empty) + .fon-legal-static-footer {
  display: none;
}

.fon-shell.fon-surface-mobile.fon-intro-locked {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.fon-shell.fon-surface-mobile .fon-header {
  border-radius: 0;
  padding: 14px 18px 11px;
}

.fon-shell.fon-surface-mobile .fon-header-tier-actions > button {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
}

.fon-shell.fon-surface-mobile .fon-main {
  padding: 18px 18px;
  gap: 14px;
}

.fon-shell.fon-surface-mobile .fon-intro-brand-hero {
  padding: 0 18px;
}

.fon-shell.fon-surface-mobile .fon-intro-gate-overlay {
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  gap: 26px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.53) 0%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.39) 0%,
      rgba(255, 255, 255, 0.35) 52%,
      rgba(248, 250, 249, 0.49) 100%
    );
}

.fon-shell.fon-surface-mobile .fon-prog-prompt-title {
  font-size: 19px;
}

.fon-shell.fon-surface-mobile .fon-gender-hero-card {
  min-height: 124px;
  padding: 18px 12px;
}

.fon-shell.fon-surface-mobile .fon-cc-top-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.fon-shell.fon-surface-mobile .fon-cc-bottom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fon-shell.fon-surface-mobile .fon-cc-garment-tile {
  min-height: 58px;
  padding: 7px 4px;
}

.fon-shell.fon-surface-mobile .fon-cc-tile-name {
  font-size: 12px;
  letter-spacing: -0.03em;
}

.fon-shell.fon-surface-mobile .fon-cc-fitfeel-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 9px 11px;
}

.fon-shell.fon-surface-mobile .fon-cc-fitfeel-chip {
  height: 32px;
  font-size: 12px;
}

.fon-shell.fon-surface-mobile .fon-cc-drawer-split {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.fon-shell.fon-surface-mobile .fon-cc-diagram-svg {
  max-height: 178px;
}

.fon-shell.fon-surface-mobile .fon-cc-input-row {
  min-height: 44px;
  padding: 0 12px;
}

.fon-shell.fon-surface-mobile .fon-cc-num-input {
  height: 42px;
  font-size: 16px;
}

.fon-shell.fon-surface-mobile .fon-top-half-action-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.fon-shell.fon-surface-mobile .fon-half-action-btn {
  min-height: 56px;
  padding: 10px 14px;
}

.fon-shell.fon-surface-mobile .fon-half-action-title {
  font-size: 13.5px;
}

.fon-shell.fon-surface-mobile .fon-half-action-sub {
  font-size: 12px;
}

.fon-shell.fon-surface-mobile .fon-gc-search-input {
  font-size: 16px;
}

.fon-shell.fon-surface-mobile .fon-prod-summary-card {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.fon-shell.fon-surface-mobile .fon-prod-thumb-box {
  width: 86px;
  height: 104px;
}

.fon-shell.fon-surface-mobile .fon-size-section-title {
  font-size: 23px;
  margin: 2px 0 12px;
}

.fon-shell.fon-surface-mobile .fon-size-choice-btn.active .fon-gc-choice-title {
  font-size: 18.5px;
}

/* ----------------------------------------------------------------------------
   [Target 3] 크롬 확장 프로그램 우측 사이드패널 전용 버전 (surfaceVariant === 'extension', 360px 폭)
   ---------------------------------------------------------------------------- */
html[data-fon-surface="extension"],
body[data-fon-surface="extension"] {
  background-color: #ffffff;
  min-width: 320px;
  overflow-x: hidden;
}

.fon-ext-sync-bar {
  position: sticky;
  top: 0;
  z-index: 48;
  height: 46px;
  padding: 0 14px;
  background: #111827;
  color: #f9fafb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fon-ext-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
}

.fon-ext-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.fon-ext-sync-dot.is-idle {
  background: #9ca3af;
  box-shadow: none;
}

#fon-ext-tab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fon-ext-extract-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: none;
  background: var(--fon-brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.14s ease, opacity 0.14s ease;
}

.fon-ext-extract-btn:hover:not(:disabled) {
  background: var(--fon-brand-hover);
}

.fon-shell.fon-surface-extension {
  overflow: visible;
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  min-height: calc(100vh - 46px);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-bottom: 22px;
}

.fon-shell.fon-surface-extension.fon-intro-locked {
  overflow: hidden;
}

.fon-shell.fon-surface-extension .fon-header {
  top: 46px;
  border-radius: 0;
  padding: 12px 14px 10px;
}

.fon-shell.fon-surface-extension .fon-header-tier-actions > button {
  height: 31px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
}

.fon-shell.fon-surface-extension .fon-header-tier-sub .fon-header-slogan {
  font-size: 11.5px;
}

.fon-shell.fon-surface-extension .fon-main {
  padding: 15px 14px;
  gap: 12px;
}

.fon-shell.fon-surface-extension .fon-intro-gate-overlay {
  padding: 64px 16px 28px;
  gap: 22px;
  border-radius: 0;
}

.fon-shell.fon-surface-extension .fon-intro-row-card {
  min-height: 72px;
  padding: 13px 14px;
  gap: 12px;
}

.fon-shell.fon-surface-extension .fon-intro-row-title {
  font-size: 15.5px;
}

.fon-shell.fon-surface-extension .fon-intro-row-sub {
  font-size: 12px;
}

.fon-shell.fon-surface-extension .fon-prog-prompt-title {
  font-size: 18px;
}

.fon-shell.fon-surface-extension .fon-gender-hero-card {
  min-height: 114px;
  padding: 16px 10px;
}

.fon-shell.fon-surface-extension .fon-cc-top-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.fon-shell.fon-surface-extension .fon-cc-bottom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.fon-shell.fon-surface-extension .fon-cc-garment-tile {
  min-height: 54px;
  padding: 6px 3px;
}

.fon-shell.fon-surface-extension .fon-cc-tile-name {
  font-size: 11.5px;
  letter-spacing: -0.03em;
}

.fon-shell.fon-surface-extension .fon-cc-fitfeel-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px;
}

.fon-shell.fon-surface-extension .fon-cc-drawer-split {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.fon-shell.fon-surface-extension .fon-cc-diagram-svg {
  max-height: 168px;
}

.fon-shell.fon-surface-extension .fon-cc-input-row {
  min-height: 40px;
  padding: 0 10px;
}

.fon-shell.fon-surface-extension .fon-top-half-action-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.fon-shell.fon-surface-extension .fon-half-action-btn {
  min-height: 52px;
  padding: 9px 12px;
}

.fon-shell.fon-surface-extension .fon-gc-searchbar {
  height: 48px;
  padding: 0 6px 0 11px;
  gap: 6px;
}

.fon-shell.fon-surface-extension .fon-gc-search-input {
  font-size: 13.5px;
}

.fon-shell.fon-surface-extension .fon-gc-inline-submit {
  height: 36px;
  padding: 0 11px;
  font-size: 12.5px;
}

.fon-shell.fon-surface-extension .fon-prod-summary-card {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  padding: 11px;
}

.fon-shell.fon-surface-extension .fon-prod-thumb-box {
  width: 78px;
  height: 96px;
}

.fon-shell.fon-surface-extension .fon-size-section-title {
  font-size: 21px;
  margin: 2px 0 10px;
}

.fon-shell.fon-surface-extension .fon-size-arrow-btn {
  width: 26px;
  height: 44px;
}

.fon-shell.fon-surface-extension .fon-gc-size-grid {
  gap: 5px;
}

.fon-shell.fon-surface-extension .fon-size-choice-btn {
  flex: 0 0 calc((100% - 15px) * 0.21);
  max-width: calc((100% - 15px) * 0.21);
  min-height: 46px;
  padding: 5px 4px;
}

.fon-shell.fon-surface-extension .fon-size-choice-btn.active {
  flex: 0 0 calc((100% - 15px) * 0.37);
  max-width: calc((100% - 15px) * 0.37);
  min-height: 62px;
  padding: 9px 6px;
}

.fon-shell.fon-surface-extension .fon-size-choice-btn.active .fon-gc-choice-title {
  font-size: 18px;
}

.fon-shell.fon-surface-extension .fon-size-choice-btn.active .fon-size-rec-tag {
  font-size: 9.5px;
  padding: 2px 6px;
}

.fon-shell.fon-surface-extension .fon-action-row {
  grid-template-columns: 1fr 96px;
}

.fon-shell.fon-surface-extension .fon-pill-btn {
  height: 48px;
  padding: 0 13px;
  font-size: 14.5px;
}

.fon-shell.fon-surface-extension .fon-oauth-sub-btn {
  padding: 0 8px;
  font-size: 13px;
}

.fon-shell.fon-surface-extension .fon-global-legal-footer {
  padding: 12px 14px 0;
}
