/* 테일러 앱 1.0 추가 스타일 — 시제품 v4 에디토리얼 톤(오프화이트·잉크 블랙·딥 올리브 1색) 그대로 */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PretendardVariable.woff2') format('woff2-variations');
}

/* 아이폰 노치·홈 막대 안전 영역 */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.masthead { padding-top: max(env(safe-area-inset-top), 0px); }
.ed-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
html { -webkit-tap-highlight-color: transparent; }

/* 상품 카드: 이름 고치기·사진 넣기·제휴 고지 */
.p-name-edit {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--line);
  padding: 4px 0;
  border-radius: 0;
}
.p-name-edit:focus { outline: none; border-bottom-color: var(--accent); }
.p-photo-add { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.aff-note { font-size: 12px; line-height: 1.5; color: var(--text2); margin: 8px 0 0; }

/* 표 글자 붙여넣기 */
.paste-box { display: grid; gap: 8px; margin: 12px 0; padding: 16px; border: 1px solid var(--line); background: var(--surface-pure); }
.paste-box textarea {
  width: 100%;
  box-sizing: border-box;
  font: 16px/1.5 ui-monospace, Menlo, monospace;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  resize: vertical;
}
.paste-box .btn-solid { justify-self: start; }
.partner-res { margin-top: 12px; }

/* 코디 보드 */
.cb-wrap { display: grid; gap: 12px; }
.cb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cb-bgs { display: flex; gap: 6px; }
.cb-bg { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; padding: 8px; cursor: pointer; }
.cb-bg i { display: block; width: 100%; height: 100%; border: 1px solid var(--line); }
.cb-bg.on { border-color: var(--line-strong); }
.cb-board {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #8A857C; font-size: 14px; margin: 0; }
.cb-item { position: absolute; cursor: grab; outline: none; }
.cb-item:active { cursor: grabbing; }
.cb-item img { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(20, 20, 19, .12)); }
.cb-item.sel { outline: 1.5px dashed #384734; outline-offset: 3px; }
.cb-item:focus-visible { outline: 2px solid #384734; outline-offset: 3px; }
.cb-cap {
  position: absolute; left: 0; bottom: -2px; transform: translateY(100%);
  font-size: 11px; color: #57534E; white-space: nowrap; padding-top: 2px;
}
.cb-ph {
  aspect-ratio: 1 / 1.1;
  display: grid; align-content: center; gap: 4px; padding: 10px;
  border: 1px dashed #B9B4AA; background: rgba(255, 255, 255, .35);
  color: #2A2926; text-align: center;
}
.cb-ph b { font-size: 13px; }
.cb-ph small, .cb-ph em { font-size: 11px; color: #57534E; font-style: normal; }
.cb-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 520px; width: 100%; margin: 0 auto; }
.cb-tools[hidden] { display: none; }
.cb-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-btns .opt-btn { min-height: 44px; }
.cb-tip { max-width: 520px; margin: 0 auto; }

/* 체형별 예시 사진 슬롯 */
.ex-wrap { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ex-empty { border: 1px dashed var(--line); padding: 28px 18px; text-align: center; background: var(--surface-pure); }
.ex-empty p { margin: 0 0 6px; font-weight: 600; }
.ex-fig { margin: 0; }
.ex-fig img { width: 100%; max-width: 520px; display: block; margin: 0 auto; }
.ex-fig figcaption { font-size: 13px; color: var(--text2); margin-top: 6px; text-align: center; }

/* 설정 */
.settings { display: grid; gap: 0; border-top: 1px solid var(--line); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-row p { margin: 4px 0 0; }
.set-toggle { cursor: pointer; }
.set-toggle input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
.set-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0 8px; }
.set-btns .opt-btn, .set-btns .btn-link { min-height: 44px; }

#cb-overlay.hidden { display: none; }

/* 탭 5개(설정 추가) */
.tabs-inner { grid-template-columns: repeat(5, 1fr); }

/* 개인정보처리방침 페이지 */
.policy h1 { font-size: 26px; margin: 12px 0 16px; }
.policy h2 { font-size: 18px; margin: 28px 0 8px; }
.policy p, .policy li { line-height: 1.7; color: var(--text); }
.policy ul, .policy ol { padding-left: 20px; }
.curated-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.curated-links:empty { display: none; }
