/* ==========================================================================
   피치링크 인플루언서 앱(⑧) 전용 부품 — C1 v1.0 에 새로 생긴 화면(채팅·포인트 출금·Instagram 인증·체험단 채팅 등)도
   디자인 앱 룩(tokens.css 역할 토큰 · 라운드 역할 규칙 8/4/2/16 · 타이포 짝)으로 만든다.
   hex 금지 — 색은 var(--fg-·--bg-·--border-·--mark-…) 만. 스코프는 body.page-pl.
   ========================================================================== */

body.page-pl { background: var(--bg-default); color: var(--fg-primary); word-break: keep-all; overflow-wrap: break-word; }   /* 한글 어절 중간 줄바꿈 방지("협의합니/다"), 긴 URL·ID 는 넘칠 때만 끊는다 (26-10-13) */
body.page-pl.has-bottom { padding-bottom: 96px; }
body.page-pl.has-chatbar { padding-bottom: 72px; }
.page-pl main { display: block; }
.page-pl .appbar-right .icon-btn { position: relative; }
.pl-dot { position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--mark-brand); }

/* 테스트 환경 표시(운영에는 나오지 않는다) */
.pl-test-bar { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 8px var(--gutter); background: var(--bg-warning-tint); font: var(--t-caption); color: var(--fg-secondary); }
.pl-test-bar a { color: var(--fg-link); text-decoration: underline; }

/* ── 공통 면 ───────────────────────────────────────────── */
.pl-section { padding: var(--space-section) var(--gutter); }
.pl-section + .pl-section { border-top: 8px solid var(--bg-sunken); }
.pl-section.is-tight { padding-top: var(--space-card); padding-bottom: var(--space-card); }
.pl-h2 { margin: 0 0 4px; font: var(--t-title-sm); font-size: 16px; line-height: 24px; color: var(--fg-primary); }
.pl-h3 { margin: 0 0 var(--space-control); font: var(--t-label); font-weight: 700; color: var(--fg-primary); }
.pl-sub { margin: 0 0 var(--space-content); font: var(--t-body); color: var(--fg-secondary); word-break: keep-all; }
.pl-note { margin: var(--space-control) 0 0; font: var(--t-caption); color: var(--fg-secondary); word-break: keep-all; }
.pl-desc { margin: 0; padding: var(--space-card) var(--gutter) 0; font: var(--t-body); color: var(--fg-secondary); word-break: keep-all; }
.pl-box { border: 1px solid var(--border-subtle); border-radius: var(--r-8); padding: var(--space-card); background: var(--bg-default); }
.pl-box + .pl-box { margin-top: var(--space-content); }
.pl-box.is-muted { background: var(--bg-muted); border-color: var(--bg-muted); }
.pl-box.is-alert { border-color: var(--border-brand); }
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-control); }
.pl-kv { list-style: none; margin: 0; padding: 0; }
.pl-kv li { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-content); padding: 8px 0; font: var(--t-body); }
.pl-kv li + li { border-top: 1px solid var(--border-subtle); }
.pl-kv .k { flex: none; color: var(--fg-secondary); }
.pl-kv .v { text-align: right; color: var(--fg-primary); font-weight: 500; word-break: keep-all; min-width: 0; }
.pl-kv .v.is-strong { font-weight: 700; }
.pl-kv .v a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }   /* 값 칸 링크(문의 상세 '관련 캠페인')는 브라우저 기본 파란 밑줄 대신 본문과 같은 행 텍스트로 */
.pl-kv .v a .icon { width: 14px; height: 14px; margin-left: 2px; color: var(--fg-tertiary); }
/* 상태 칩은 흐리게 하지 않는다 — cards.css 의 SNS 배지 규칙(.badge:not(.is-mine) opacity .5)이 st 칩까지 덮어 검정 '승인'이 회색으로 보였다. 시안은 st 칩에 모두 is-mine */
.page-pl .badge.st { opacity: 1; }
/* 문의 '답변 완료' 칩 — 시안 v54 response-status.answered(빨강 채움). st-done 은 승인 등 다른 상태와 같이 써서 따로 둔다 */
.badge.st-answered { background: var(--bg-brand); border-color: var(--bg-brand); color: var(--fg-inverse); }
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-bullets { margin: 0; padding-left: 18px; font: var(--t-body); color: var(--fg-secondary); }
.pl-bullets li + li { margin-top: 4px; }
.pl-strong { font-weight: 700; color: var(--fg-primary); }
.pl-brand-text { color: var(--fg-brand); font-weight: 700; }
.pl-muted { color: var(--fg-secondary); }
.pl-hr { height: 8px; border: 0; margin: 0; background: var(--bg-sunken); }
.pl-actions { display: flex; flex-direction: column; gap: var(--space-control); margin-top: var(--space-section); }
.pl-actions.is-row { flex-direction: row; }
.pl-actions.is-row .btn { flex: 1; min-width: 0; }
.page-pl .btn.w100 { width: 100%; }
.pl-err { display: none; margin-top: 4px; font: var(--t-caption); color: var(--fg-error); }
.has-error .pl-err, .pl-err.is-on { display: block; }
.pl-alert { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: var(--r-8); background: var(--bg-brand-tint); color: var(--fg-primary); font: var(--t-body); }
.pl-alert .icon { flex: none; width: 20px; height: 20px; color: var(--fg-brand); }
.pl-info { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: var(--r-8); background: var(--bg-muted); font: var(--t-body); color: var(--fg-secondary); }
.pl-info .icon { flex: none; width: 20px; height: 20px; }

/* 하단 고정 버튼 바 */
.pl-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; gap: var(--space-control); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bg-default); border-top: 1px solid var(--border-subtle); }
.pl-bottom .btn { flex: 1; min-width: 0; height: 56px; }   /* 시안 bottom-buttons 56 (26-10-13, 48→56) */
.pl-bottom .btn.is-narrow { flex: none; width: 56px; padding: 0; }

/* 탭(상태 필터) — 앱바 바로 아래 고정 */
/* top:0 — body 가 스크롤 컨테이너라 sticky 기준이 이미 앱바 아래다. 56 을 더 주면 탭이
   그만큼 밀려 내려가 본문 첫 줄을 덮었다(2026-11-10 실측: 겹침 24px). */
.page-pl .fixed-tabs.pl-tabs { position: sticky; top: 0; z-index: 50; background: var(--bg-default); }
.page-pl .fixed-tab .pl-count { margin-left: 4px; color: var(--fg-tertiary); font-weight: 400; }

/* 칩 */
.pl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-control); padding: var(--space-content) var(--gutter); }
.pl-toolbar > .btn { flex: none; white-space: nowrap; }   /* 옆 설명이 길면 버튼이 눌려 '모두 읽/음'으로 끊겼다 */
.pl-chips { display: flex; gap: var(--space-control); overflow-x: auto; scrollbar-width: none; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 1px solid var(--border-control); border-radius: var(--r-4); background: var(--bg-default); font: var(--t-label); color: var(--fg-primary); text-decoration: none; white-space: nowrap; }
.pl-chip.is-active { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse); }
/* 필터 select(피치링크 캠페인 목록의 매체·정렬 등) — 아이콘 오른쪽 여백 축소.
   기존: 네이티브 화살표 + padding-right 28px → 변경: iOS 네이티브 select 는 padding-right 를 무시하고
   화살표 오른쪽에 고정 여백(약 28px)을 남겨서 줄일 수 없었다. 그래서 forms.css 의 .form-select 와 같은
   방식(appearance:none + 배경 SVG 화살표)으로 바꾸고 화살표를 오른쪽 4px 에 붙였다. 화살표 모양(위아래 ⌃⌄)은 기존과 동일. */
.pl-select { height: 32px; padding: 0 24px 0 8px; border: 1px solid var(--border-control); border-radius: var(--r-4); background: var(--bg-default) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23222'%3E%3Cpath d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E") no-repeat right 4px center / 16px; -webkit-appearance: none; appearance: none; font: var(--t-label); color: var(--fg-primary); }

/* ── 1-2 캠페인 카드 ───────────────────────────────────── */
.pl-hero { padding: var(--space-section) var(--gutter) var(--space-content); }
.pl-hero .t20 { margin: 0; }
.pl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding: 0 var(--gutter) var(--space-section); }
.pl-card { position: relative; display: block; color: inherit; text-decoration: none; min-width: 0; }
.pl-card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-4); overflow: hidden; background: var(--bg-muted); }
.pl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 찜 버튼을 누를 때 하트 뒤로 검은 정사각형이 비치던 것 제거. 원인: iOS 웹뷰 기본 탭 하이라이트(버튼 36px 영역)와 포커스 링.
   기존: 기본값 → 변경: 탭 하이라이트 투명 + 포커스 윤곽선 제거. 누름 피드백은 하트 색(.is-on)으로만 준다. */
.pl-wish { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--fg-on-image); cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; -webkit-appearance: none; appearance: none; }
.pl-wish:focus, .pl-wish:active { outline: none; background: transparent; }
.pl-wish .icon { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.pl-wish.is-on { color: var(--fg-brand); }
/* 찜 하트 두 모양을 마크업에 함께 두고 .is-on 으로 전환한다(서버 응답 없이 바로 바꾸는 낙관적 갱신, pl-app.js). */
.pl-wish .w-off, .pl-wish .w-on { display: inline-flex; }
.pl-wish .w-on, .pl-wish.is-on .w-off { display: none; }
.pl-wish.is-on .w-on { display: inline-flex; }
.pl-card-body { padding-top: var(--space-control); display: flex; flex-direction: column; gap: 2px; }
.pl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pl-dday { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-2); background: var(--bg-sunken); color: var(--fg-secondary); font: var(--t-caption-xs); font-weight: 700; }
.pl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-2); border: 1px solid var(--border-subtle); color: var(--fg-secondary); font: var(--t-caption-xs); }
.pl-tag.is-fee { border-color: var(--fg-primary); color: var(--fg-primary); }
.pl-media-icons { display: inline-flex; gap: 2px; color: var(--fg-secondary); }
.pl-media-icons .icon { width: 14px; height: 14px; }
.pl-card-brand { font: var(--t-caption); color: var(--fg-secondary); margin-top: 2px; }
.pl-card-title { font: var(--t-label); font-weight: 700; color: var(--fg-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-card-pd { font: var(--t-caption); color: var(--fg-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 2px; }
.pl-price .list { font: var(--t-caption); color: var(--fg-tertiary); text-decoration: line-through; width: 100%; }
.pl-price .off { font: var(--t-label); font-weight: 700; color: var(--fg-brand); }
.pl-price .sale { font: var(--t-label); font-weight: 700; color: var(--fg-primary); }
.pl-price.is-lg .list { font: var(--t-body); }
.pl-price.is-lg .off, .pl-price.is-lg .sale { font: var(--t-title); }
.pl-card-rate { font: var(--t-caption); color: var(--fg-primary); }

/* ── 1-3 캠페인 상세 ───────────────────────────────────── */
.pl-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--bg-muted); scrollbar-width: none; }
.pl-gallery::-webkit-scrollbar { display: none; }
.pl-gallery img { flex: none; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; display: block; }
.pl-anchor { position: sticky; top: 56px; z-index: 40; }
/* 상세 상단 탭(판매 조건·상품 소개·가이드·FAQ, #sec-*) 클릭 시 스크롤 위치 보정.
   기존: 앵커 이동이 섹션 위쪽 끝을 화면 맨 위(0)에 맞춰서, 고정 앱바(56px)+고정 탭(41px) 97px 아래로 섹션 제목이 가려졌다
   → 변경: scroll-margin-top 으로 고정 영역 높이만큼 비워 섹션이 탭 바로 아래에 보이게 한다. 앱바·탭 높이를 바꾸면 이 값도 같이 고칠 것. */
.pl-section[id^="sec-"] { scroll-margin-top: 97px; }
.pl-detail-head { padding: var(--space-card) var(--gutter) var(--space-section); }
.pl-detail-head .brand { font: var(--t-caption); color: var(--fg-secondary); }
.pl-detail-head h2 { margin: 4px 0 2px; font: var(--t-title); color: var(--fg-primary); word-break: keep-all; }
.pl-detail-head .pd { font: var(--t-body); color: var(--fg-secondary); }
.pl-media-tabs { display: flex; gap: var(--space-control); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.pl-media-tabs::-webkit-scrollbar { display: none; }
.pl-media-tab { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-control); border-radius: var(--r-4); background: var(--bg-default); color: var(--fg-secondary); cursor: pointer; }
.pl-media-tab .icon { width: 22px; height: 22px; }
.pl-media-tab.is-active { border-color: var(--fg-primary); color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--fg-primary); }
.pl-media-panel { display: none; margin-top: var(--space-content); }
.pl-media-panel.is-active { display: block; }
.pl-tier-head, .pl-tier { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; padding: 10px 0; font: var(--t-body); }
.pl-tier-head { font: var(--t-caption); color: var(--fg-secondary); border-bottom: 1px solid var(--border-control); padding-top: 0; }
.pl-tier + .pl-tier { border-top: 1px solid var(--border-subtle); }
.pl-tier > :nth-child(2), .pl-tier > :nth-child(3), .pl-tier-head > :nth-child(2), .pl-tier-head > :nth-child(3) { text-align: right; }
.pl-tier.is-2col, .pl-tier-head.is-2col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.pl-comp { border: 1px solid var(--border-subtle); border-radius: var(--r-8); padding: var(--space-card); }
.pl-comp + .pl-comp { margin-top: var(--space-content); }
.pl-comp-name { margin: 0 0 var(--space-control); font: var(--t-label); font-weight: 700; }
.pl-rich { font: var(--t-body); color: var(--fg-primary); word-break: keep-all; overflow-wrap: anywhere; }
.pl-rich img { max-width: 100%; height: auto; border-radius: var(--r-4); }
.pl-rich h3 { font: var(--t-label); font-weight: 700; margin: 16px 0 4px; }
.pl-rich p { margin: 0 0 8px; }
.pl-faq { border-top: 1px solid var(--border-subtle); }
.pl-faq details { border-bottom: 1px solid var(--border-subtle); }
.pl-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 14px 0; font: var(--t-label); cursor: pointer; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary .icon { flex: none; width: 16px; height: 16px; transition: transform .2s; }
.pl-faq details[open] summary .icon { transform: rotate(180deg); }
.pl-faq .a { padding: 0 0 14px; font: var(--t-body); color: var(--fg-secondary); word-break: keep-all; }

/* ── 1-4 신청 ──────────────────────────────────────────── */
.pl-summary { display: flex; gap: 12px; align-items: center; }
.pl-summary img, .pl-summary .ph { flex: none; width: 56px; height: 56px; border-radius: var(--r-4); object-fit: cover; background: var(--bg-muted); border: 1px solid var(--border-subtle); }
.pl-summary .body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-summary .t { font: var(--t-label); font-weight: 700; color: var(--fg-primary); }
.pl-summary .s { font: var(--t-caption); color: var(--fg-secondary); }
/* 채널 선택 카드 세로 중앙 정렬. 기존: 위 4px / 아래 16px 패딩이라 접힌 카드에서 로고·텍스트가 위쪽으로 치우쳐 보였다
   → 변경: 위·아래 12px 대칭 패딩(접힌 상태에서 중앙). 펼친 카드(.is-on)는 팔로워 구간 목록 아래 여백을 위해 아래만 16px. */
.pl-ch { border: 1px solid var(--border-control); border-radius: var(--r-8); padding: var(--space-content) var(--space-card); }
.pl-ch.is-on { padding-bottom: var(--space-card); }
.pl-ch + .pl-ch { margin-top: var(--space-control); }
.pl-ch.is-on { border-color: var(--fg-primary); }
.pl-ch-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.pl-ch-head .logo { flex: none; width: 32px; height: 32px; border-radius: var(--r-full); background: var(--bg-muted); display: inline-flex; align-items: center; justify-content: center; }
.pl-ch-head .logo .icon { width: 18px; height: 18px; }
/* 캠페인 신청 채널 선택 카드(SNS 채널): 체크박스를 카드 오른쪽 끝에 둔다 — 디자인 허브 apply-delivery.html 기준
   (로고·채널명이 왼쪽, 체크박스가 오른쪽). 기존: 마크업 순서대로 체크박스가 맨 왼쪽 → 변경: order 로 오른쪽 끝으로 이동(마크업은 그대로). */
.pl-ch-head .ctl-ui { order: 3; margin-left: auto; }

/* 선택 목록(PL.dropdown, pl-app.js) — 네이티브 select 대체. 목록 폭 = 선택 박스 폭, 긴 글자는 한 줄 말줄임.
   기존: 네이티브 select 목록이 가장 긴 옵션에 맞춰 좌우로 넓어졌다 → 변경: 선택 박스와 같은 폭의 목록을 직접 그린다.
   원래 select 는 폼 값 용도로 화면에서만 숨긴다(pl-dd-native). 박스 모양은 .form-select(forms.css)를 그대로 쓴다. */
.pl-dd { position: relative; }
.pl-dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.pl-dd-btn { display: block; text-align: left; background-color: var(--bg-default); }
.pl-dd-txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-dd-txt.is-empty { color: var(--fg-tertiary); }
.pl-dd-list { display: none; position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none; max-height: 240px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg-default); border: 1px solid var(--border-control); border-radius: var(--r-8); box-shadow: var(--shadow-1); }
.pl-dd.is-open .pl-dd-list { display: block; }
.pl-dd-list li { display: block; padding: 0 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--t-label); line-height: 44px; /* font 단축 속성이 line-height 를 덮어쓰므로 그 뒤에 둔다 */ color: var(--fg-primary); cursor: pointer; }
.pl-dd-list li.is-on { font-weight: 700; background: var(--bg-sunken); }
.pl-ch-head .name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-ch-head .name b { font: var(--t-label); font-weight: 700; }
.pl-ch-head .name span { font: var(--t-caption); color: var(--fg-secondary); }
.pl-ch-body { display: none; margin-top: var(--space-control); }
.pl-ch.is-on .pl-ch-body { display: block; }
.pl-tier-pick { display: flex; flex-direction: column; }
.pl-tier-pick .ctl { width: 100%; justify-content: flex-start; border-top: 1px solid var(--border-subtle); }
.pl-tier-pick .ctl .lbl { flex: 1; }
.pl-tier-pick .ctl .amt { font: var(--t-caption); color: var(--fg-secondary); text-align: right; }
.pl-ig { margin-top: var(--space-control); padding: 12px; border-radius: var(--r-8); background: var(--bg-muted); font: var(--t-body); }
.pl-ig.is-ok { background: var(--bg-success-tint); }
.pl-ig .st { font-weight: 700; }
.pl-ig .btn { margin-top: var(--space-control); }
.pl-ok-text { color: var(--fg-success); font-weight: 700; }
.pl-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--border-control); border-radius: var(--r-8); background: var(--bg-default); font: var(--t-body-lg); color: var(--fg-primary); text-align: left; cursor: pointer; }
.pl-field.is-empty { color: var(--fg-tertiary); }
.has-error .pl-field, .has-error .form-input, .has-error .form-textarea, .has-error .pl-select { border-color: var(--fg-error); }
.pl-cal { display: none; margin-top: var(--space-control); border: 1px solid var(--border-subtle); border-radius: var(--r-8); padding: 12px; }
.pl-cal.is-open { display: block; }
.pl-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: var(--t-label); font-weight: 700; }
.pl-cal-head .icon-btn { width: 36px; height: 36px; }
.pl-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; text-align: center; }
.pl-cal-grid .dow { font: var(--t-caption); color: var(--fg-tertiary); padding: 4px 0; }
.pl-cal-grid button { height: 36px; border: 0; background: transparent; font: var(--t-body); color: var(--fg-primary); cursor: pointer; border-radius: 0; }
.pl-cal-grid button:disabled { color: var(--fg-tertiary); opacity: .45; cursor: default; }
.pl-cal-grid button.is-range { background: var(--bg-muted); }
.pl-cal-grid button.is-start, .pl-cal-grid button.is-end { background: var(--bg-inverse); color: var(--fg-inverse); font-weight: 700; }
.pl-cal-grid button.is-start { border-radius: var(--r-full) 0 0 var(--r-full); }
.pl-cal-grid button.is-end { border-radius: 0 var(--r-full) var(--r-full) 0; }
.pl-cal-grid button.is-start.is-end { border-radius: var(--r-full); }
.pl-cal-foot { display: flex; gap: 8px; margin-top: 12px; }
.pl-cal-foot .btn { flex: 1; }

/* 1-5 완료 */
.pl-done { padding: 48px var(--gutter) var(--space-section); text-align: center; }
.pl-done-icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: var(--r-full); background: var(--bg-inverse); color: var(--fg-inverse); display: flex; align-items: center; justify-content: center; }
.pl-done-icon .icon { width: 40px; height: 40px; color: var(--fg-inverse); }   /* icons.css .icon 기본색(fg-primary)이 덮어 검정 원에 검정 체크였다 — 시안 success-icon 80/40 (26-10-13) */
.pl-done h2 { margin: 0 0 4px; font: var(--t-title); }
.pl-done p { margin: 0; font: var(--t-body); color: var(--fg-secondary); }

/* ── 02 내 판매 · 판매 상세 · 링크 ───────────────────────── */
.pl-app-item { display: flex; gap: 12px; padding: var(--space-card) var(--gutter); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.pl-app-item img, .pl-app-item .ph { flex: none; width: 72px; height: 72px; border-radius: var(--r-4); object-fit: cover; background: var(--bg-muted); }
.pl-app-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-app-item .t { font: var(--t-label); font-weight: 700; color: var(--fg-primary); }
.pl-app-item .s { font: var(--t-caption); color: var(--fg-secondary); }
.pl-app-item .chs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pl-app-item .go { align-self: center; flex: none; color: var(--fg-tertiary); }
.pl-app-item .go .icon { width: 16px; height: 16px; }
.pl-link { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--border-control); border-radius: var(--r-8); background: var(--bg-muted); }
.pl-link code { flex: 1; min-width: 0; font: var(--t-body); font-family: var(--font-sans); color: var(--fg-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-preview { border: 1px solid var(--border-subtle); border-radius: var(--r-8); overflow: hidden; }
.pl-preview-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-muted); font: var(--t-caption); color: var(--fg-secondary); }
.pl-preview-body { padding: var(--space-card); }
.pl-preview-body img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-4); display: block; margin-bottom: 12px; }

/* 2-5 알림 */
.pl-noti { display: block; position: relative; padding: var(--space-card) var(--gutter) var(--space-card) calc(var(--gutter) + 12px); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.pl-noti .grp { font: var(--t-caption); color: var(--fg-secondary); }
.pl-noti .tt { font: var(--t-label); font-weight: 700; color: var(--fg-primary); margin-top: 2px; }
.pl-noti .bd { font: var(--t-body); color: var(--fg-secondary); margin-top: 2px; word-break: keep-all; }
.pl-noti.is-unread::before { content: ""; position: absolute; left: var(--gutter); top: 24px; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--mark-brand); }
.pl-noti.is-read .tt { font-weight: 500; }
.pl-day-label { padding: 12px var(--gutter) 4px; font: var(--t-caption); color: var(--fg-tertiary); background: var(--bg-default); }

/* ── 03 메시지 · 채팅 ──────────────────────────────────── */
.pl-thread { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-card) var(--gutter); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.pl-thread .avatar { flex: none; width: 44px; height: 44px; border-radius: var(--r-full); background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; font: var(--t-label); font-weight: 700; color: var(--fg-secondary); }
.pl-thread .body { flex: 1; min-width: 0; }
.pl-thread .top { display: flex; justify-content: space-between; gap: 8px; }
.pl-thread .who { font: var(--t-label); font-weight: 700; color: var(--fg-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-thread .when { flex: none; font: var(--t-caption); color: var(--fg-tertiary); }
.pl-thread .cp { font: var(--t-caption); color: var(--fg-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-thread .pv { font: var(--t-body); color: var(--fg-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.pl-thread .unread { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--bg-brand); color: var(--fg-inverse); font: var(--t-caption-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* top:0 — 상태 탭(.pl-tabs)과 같은 이유. body 가 overflow 로 스크롤 컨테이너가 되어 sticky 기준이 이미 앱바 아래라,
   56 을 더 주면 헤더가 24px 밀려 내려가 채팅 맨 위 안내문 윗부분을 덮었다(BUG-008, 2026-11-13 실측: 헤더 110~175 · 안내문 167~183). */
.pl-chat-head { position: sticky; top: 0; z-index: 40; display: flex; gap: 12px; align-items: center; padding: 12px var(--gutter); background: var(--bg-default); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.pl-chat-head img, .pl-chat-head .ph { flex: none; width: 40px; height: 40px; border-radius: var(--r-4); object-fit: cover; background: var(--bg-muted); }
.pl-chat-head .body { flex: 1; min-width: 0; }
.pl-chat-head .t { font: var(--t-label); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-chat-head .s { font: var(--t-caption); color: var(--fg-secondary); }
.pl-chat { padding: var(--space-card) var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.pl-chat-day { align-self: center; padding: 2px 10px; border-radius: var(--r-full); background: var(--bg-muted); font: var(--t-caption); color: var(--fg-secondary); margin: 8px 0; }
.pl-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.pl-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.pl-bubble { padding: 10px 12px; border-radius: var(--r-16); background: var(--bg-muted); font: var(--t-body); color: var(--fg-primary); white-space: pre-wrap; word-break: break-word; }
.pl-msg.is-me .pl-bubble { background: var(--bg-inverse); color: var(--fg-inverse); }
/* 자동 번역 — 원문 아래에 번역문(말풍선 색이 두 가지라 선·글자는 현재 글자색을 흐리게 쓴다) */
.pl-tr { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(128, 128, 128, .35); opacity: .85; }
/* 채팅 첨부(BUG-013) — 본문·이미지·파일을 세로로 쌓는다 */
.pl-files { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-msg.is-me .pl-files { align-items: flex-end; }
.pl-file-img { display: block; }
.pl-file-img img { display: block; max-width: 220px; max-height: 280px; border-radius: var(--r-16); object-fit: cover; background: var(--bg-muted); }
.pl-bubble.pl-file { display: inline-block; text-decoration: underline; }
.pl-msg-time { flex: none; font: var(--t-caption-xs); color: var(--fg-tertiary); }
.pl-sys { align-self: center; max-width: 92%; text-align: center; font: var(--t-caption); color: var(--fg-secondary); }
.pl-offer { width: 100%; max-width: 300px; border: 1px solid var(--border-control); border-radius: var(--r-16); padding: var(--space-card); background: var(--bg-default); }
.pl-offer .lbl { font: var(--t-caption); color: var(--fg-secondary); }
.pl-offer .amt { font: var(--t-title-sm); margin: 2px 0 4px; }
.pl-offer .btns { display: flex; gap: 8px; margin-top: 12px; }
.pl-offer .btns .btn { flex: 1; }
.pl-chat-input { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--bg-default); border-top: 1px solid var(--border-subtle); }
.pl-chat-input textarea { flex: 1; min-width: 0; height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--border-control); border-radius: var(--r-8); font: var(--t-body); resize: none; }
.pl-chat-input .btn { flex: none; height: 44px; }

/* ── 05 실적 · 정산 ────────────────────────────────────── */
.pl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-stat { padding: 12px; border-radius: var(--r-8); background: var(--bg-muted); }
.pl-stat .k { font: var(--t-caption); color: var(--fg-secondary); }
.pl-stat .v { font: var(--t-title-sm); margin-top: 2px; }
.pl-stat .s { font: var(--t-caption); color: var(--fg-secondary); margin-top: 2px; }
.pl-settle-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-control); font: var(--t-label); font-weight: 700; }
.pl-settle-total .v { font: var(--t-title-sm); }
.pl-order-row { padding: 12px 0; border-top: 1px solid var(--border-subtle); font: var(--t-body); }
.pl-order-row:first-child { border-top: 0; }
.pl-order-row .top { display: flex; justify-content: space-between; font-weight: 700; }
.pl-order-row .meta { font: var(--t-caption); color: var(--fg-secondary); margin-top: 2px; }

/* ── 06 포인트 ─────────────────────────────────────────── */
.pl-point-hero { padding: var(--space-section) var(--gutter); background: var(--bg-muted); }
.pl-point-hero .k { font: var(--t-body); color: var(--fg-secondary); }
.pl-point-hero .v { font: var(--t-display); margin: 4px 0 12px; }
.pl-pg { display: block; padding: var(--space-card) var(--gutter); border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.pl-pg .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pl-pg .t { font: var(--t-label); font-weight: 700; color: var(--fg-primary); min-width: 0; }
.pl-pg .p { flex: none; font: var(--t-label); font-weight: 700; color: var(--fg-primary); }
.pl-pg .s { font: var(--t-caption); color: var(--fg-secondary); margin-top: 2px; }
.pl-amount-input { display: flex; align-items: center; gap: 8px; }
.pl-amount-input .form-input { flex: 1; text-align: right; font: var(--t-title-sm); }
.pl-amount-input .unit { font: var(--t-title-sm); }
.pl-wd { padding: var(--space-card) var(--gutter); border-bottom: 1px solid var(--border-subtle); }
.pl-wd summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.pl-wd summary::-webkit-details-marker { display: none; }
.pl-wd .st { font: var(--t-caption); color: var(--fg-secondary); }
.pl-wd .p { font: var(--t-label); font-weight: 700; }
.pl-wd .detail { margin-top: 12px; }
.pl-wd.is-target { background: var(--bg-muted); }

/* 토스트 */
.pl-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(16px); z-index: 3000; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: var(--r-8); background: var(--bg-inverse); color: var(--fg-inverse); font: var(--t-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.pl-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 2026-11-10: 넓은 화면에서 3열로 늘리던 규칙을 뺐다.
   킷 동기화로 앱 셸에 최대폭이 생겨 본문이 모바일 폭으로 고정됐는데,
   미디어쿼리는 셸이 아니라 **뷰포트** 폭을 보므로 좁은 셸 안에서 3열이 걸려
   카드가 눌렸다. 디자인 킷(1-2 공동구매 목록)도 2열이다. */

.pl-tag .icon { width: 12px; height: 12px; }
.page-pl .btn .icon.i16 { width: 16px; height: 16px; }
.pl-chat-input .btn.is-narrow { flex: none; width: 44px; padding: 0; font: var(--t-title-sm); }

/* ── 기존 앱 하단 5개 메뉴(C1 1-1 "기존 하단 5개 메뉴 유지" C1:74) — skin/nfor/css/style.css #footer 규칙을 옮김(2026-10-13).
   마크업 _tabbar.php · 아이콘 스프라이트는 기존 img/bottom_icon.png 그대로. 목록·허브 화면에서만($pl_tabbar). ── */
.pl-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: flex; background: var(--bg-default); border-top: 1px solid var(--border-subtle); padding-bottom: env(safe-area-inset-bottom); }
.pl-tabbar a { flex: 1; min-width: 0; display: block; padding: 7px 0; text-align: center; color: var(--fg-primary); font-size: 11px; line-height: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* lint-allow: 기존 앱 탭바 라벨 11px */
.pl-tabbar i { display: block; width: 30px; height: 30px; margin: 0 auto; background: url(../../img/bottom_icon.png) no-repeat center; background-size: 140px auto; }
.pl-tabbar .btn_home { background-position: 0 0; }
.pl-tabbar .btn_campain { background-position: -28px 0; }
.pl-tabbar .btn_message { background-position: -56px 0; }
.pl-tabbar .btn_mypage { background-position: -84px 0; }
.pl-tabbar .btn_community { background-position: -112px 0; }
.pl-tabbar .btn_home.on { background-position: 0 -28px; }
.pl-tabbar .btn_campain.on { background-position: -28px -28px; }
.pl-tabbar .btn_message.on { background-position: -56px -28px; }
.pl-tabbar .btn_mypage.on { background-position: -84px -28px; }
.pl-tabbar .btn_community.on { background-position: -112px -28px; }
.pl-tabbar span.on { color: var(--fg-brand); }
/* 탭바 높이 = 7 + 30 + 14 + 7 + 테두리 1 = 59 → 본문 여백. 하단 고정 버튼 바는 탭바 위로 올려 겹치지 않게 */
body.page-pl.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.page-pl.has-tabbar.has-bottom { padding-bottom: calc(72px + 80px + env(safe-area-inset-bottom)); }
body.page-pl.has-tabbar .pl-bottom { bottom: calc(59px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
body.page-pl.has-tabbar.has-bottom .pl-toast { bottom: calc(160px + env(safe-area-inset-bottom)); }

/* ── 1-2 우측 상단 국가 선택(C1:85·93·95 "우측 상단 선택 국가 기준으로 조회") ── */
/* 앱바 오른쪽 칸 폭 보정(국가 선택 + 벨이 있는 화면, _shell_head.php 가 has-cc-pick 클래스를 붙인다).
   기존: 앱바 오른쪽 칸이 88px 고정(navigation.css)이라 국가 선택(약 110px)+벨(44px)이 칸을 넘어 벨이 화면 오른쪽 밖으로 밀렸다
   → 변경: 양쪽 칸을 내용 폭에 맞춰 늘리고(1fr auto 1fr) 오른쪽 끝에 4px 여백을 둔다. 제목은 가운데 근처에 유지된다. */
.page-pl .appbar.has-cc-pick { grid-template-columns: 1fr auto 1fr; }
.page-pl .appbar.has-cc-pick .appbar-right { padding-right: 4px; }
/* 국가 선택과 오른쪽 알림(벨) 아이콘 사이 간격. 기존: 오른쪽 여백 4px 로 벨과 너무 붙어 보였다 → 변경: 8px(12px 는 벨 양옆이 넓어 보여 줄임). */
.pl-cc-pick { display: inline-flex; align-items: center; margin: 0 8px 0 0; }
/* 국가 select — 화살표 오른쪽 여백 축소. 위 .pl-select 와 같은 이유(iOS 네이티브 select 는 padding-right 를 무시)로
   appearance:none + 배경 SVG 화살표(오른쪽 4px)로 바꿨다. 기존: 네이티브 화살표 → 변경: 같은 모양의 SVG 화살표. */
.pl-cc-pick select { height: 32px; padding: 0 24px 0 8px; border: 1px solid var(--border-control); border-radius: var(--r-4); background: var(--bg-default) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23222'%3E%3Cpath d='M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z'/%3E%3C/svg%3E") no-repeat right 4px center / 16px; -webkit-appearance: none; appearance: none; font: var(--t-label); color: var(--fg-primary); }

/* 샘플 배송정보(1-4 신청 · 1-4-7 입력 · 2-6 배송지 관리) — 프로토타입 캠페인 신청·샘플 배송 정보·배송지 관리 */
.pl-ship-card p { margin: 0; font: var(--t-body); color: var(--fg-primary); word-break: keep-all; overflow-wrap: anywhere; }
.pl-ship-card .nm { font-weight: 700; }
.pl-ship-card .sub { margin-top: 2px; font: var(--t-caption); color: var(--fg-secondary); }
.pl-ship-card .ad { margin-top: 8px; }
.pl-ship-card .ad + .sub { margin-top: 4px; }
.pl-ship-fixed { display: flex; align-items: center; background: var(--bg-muted); border-color: var(--bg-muted); color: var(--fg-primary); }

/* 문의 답변 번역 표시(2026-11-12) — "자동 번역" + 원문 보기(접힘) · 번역 중/실패 안내 */
.pl-tr { margin-top: var(--space-control); }
.pl-tr summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: var(--t-caption); color: var(--fg-secondary); }
.pl-tr summary::-webkit-details-marker { display: none; }
.pl-tr-badge { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-subtle); background: var(--bg-default); }
.pl-tr-toggle { text-decoration: underline; }
.pl-tr-orig { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-subtle); color: var(--fg-secondary); white-space: pre-wrap; }
