/* 체형별 착장 보기 — 도구 전용 스타일 (namespace: .bf-) */
.bf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .bf-wrap { grid-template-columns: 1fr; } }

.bf-stage {
  position: relative; border: 1px solid #e5e2dd; border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(#f4f2ef 0% 25%, #eceae6 0% 50%) 50% / 22px 22px;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.bf-stage canvas { display: block; max-width: 100%; height: auto; }
.bf-drophint {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: #8b857e; font-size: 14px; pointer-events: none; text-align: center; padding: 20px;
}
.bf-status { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: #8b857e; flex-wrap: wrap; }
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c4bd; display: inline-block; margin-right: 6px; vertical-align: middle; }
.bf-dot.ok { background: #4a9e5c; } .bf-dot.busy { background: #d79a3c; animation: bfpulse 1s infinite; } .bf-dot.warn { background: #c0703f; }
@keyframes bfpulse { 50% { opacity: .35; } }

.bf-panel { position: relative; border: 1px solid #e5e2dd; border-radius: 12px; padding: 20px; background: #fff; }

/* 무료 한도 소진 시 컨트롤 패널을 덮는 잠금 화면 */
.bf-lock { position: absolute; inset: 0; background: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 28px 24px; z-index: 5; }
.bf-lock.hidden { display: none; }
.bf-lock-icon { font-size: 30px; line-height: 1; }
.bf-lock-title { font-size: 15px; font-weight: 700; color: #2c2a27; margin: 0; }
.bf-lock-msg { font-size: 13px; color: #6b655e; line-height: 1.7; margin: 0; }
.bf-lock .bf-btn { width: auto; min-width: 190px; }
.bf-panel h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .02em; }
.bf-group { margin-bottom: 20px; }
.bf-group:last-child { margin-bottom: 0; }
.bf-label { font-size: 12px; color: #6b655e; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

.bf-filebtn { display: block; width: 100%; padding: 14px; border: 1px dashed #cfc9c1; border-radius: 8px; text-align: center; cursor: pointer; color: #3a352f; font-size: 13px; transition: border-color .15s; }
.bf-filebtn:hover { border-color: #d79a3c; }
.bf-filebtn input { display: none; }

.bf-toggle-row { display: flex; gap: 8px; }
.bf-toggle { flex: 1; padding: 10px; border: 1px solid #e0dcd5; border-radius: 8px; background: #faf9f7; color: #6b655e; font-size: 13px; cursor: pointer; text-align: center; }
.bf-toggle.active { border-color: #2c2a27; background: #2c2a27; color: #fff; font-weight: 600; }

.bf-detected { font-size: 13px; color: #4a453f; line-height: 1.6; margin-bottom: 10px; }
.bf-detected a { color: #b6772a; }
.bf-muted { color: #a49e96; }

.bf-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-size { padding: 9px 12px; border: 1px solid #e0dcd5; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.bf-size:hover { border-color: #d79a3c; }
.bf-size.active { border-color: #b6772a; background: #fbf3e6; color: #8a5a17; font-weight: 700; }

.bf-slider { width: 100%; }
.bf-slider-label { display: flex; justify-content: space-between; font-size: 12.5px; color: #4a453f; margin-bottom: 6px; }

.bf-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #e0dcd5; background: #faf9f7; color: #2c2a27; font-size: 14px; cursor: pointer; text-decoration: none; }
.bf-btn:disabled { opacity: .45; cursor: not-allowed; }
.bf-btn-primary { background: #2c2a27; color: #fff; border-color: #2c2a27; font-weight: 600; }
.bf-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.bf-quota { font-size: 12.5px; color: #6b655e; margin-top: 12px; text-align: center; }
.bf-gate { margin-top: 14px; padding: 14px; border-radius: 8px; background: #fbf3e6; border: 1px solid #ecd9b6; font-size: 13px; color: #6a5320; }
.bf-gate p { margin: 0 0 10px; }
.bf-gate.hidden { display: none; }
.hidden { display: none; }

.bf-simnote { margin-top: 12px; font-size: 12px; color: #8b857e; display: flex; align-items: center; gap: 8px; }
.bf-simnote::before { content: "ⓘ"; }

/* 단계 안내 배너 (이미지 영역 상단) */
.bf-guide { position: absolute; top: 12px; left: 12px; right: 12px; text-align: center; background: rgba(44,42,39,.88); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 8px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.bf-guide.hidden { display: none; }

/* 생성 중 오버레이 */
.bf-busy { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(20,18,17,.55); color: #fff; font-size: 15px; font-weight: 600; text-align: center; padding: 20px; }
.bf-busy.hidden { display: none; }
.bf-spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: bfspin .8s linear infinite; }
@keyframes bfspin { to { transform: rotate(360deg); } }
