/* ============================================================================
   GiftTalk — 공통 컴포넌트 + 레이아웃

   ★ 이 파일을 고칠 때 알아 둘 것 ★
   · 값(색·간격·글자·모서리)은 css/tokens.css 의 변수만 쓴다. 새 값을 지어내지
     않는다. 움직임 관련 이름(--t-fast · --ease-out …)은 css/motion.css 에 있다.
   · **뒤에 오는 것이 이긴다.** 아래쪽 「… 에서 온 것」 구역들은 위쪽 기본 규칙을
     덮어쓰는 자리다. 그래서 규칙 차례를 함부로 바꾸면 화면이 달라진다.
   · 같은 선택자를 두 번 쓸 때는, 앞에서는 짜임새(display·grid 칸)만 정하고
     값(padding·gap)은 뒤 한 곳에서만 정한다. 두 곳에서 같은 값을 정하면
     앞의 것이 죽은 규칙이 된다.

   차례
     1. 기본        — 제목 크기 · 뼈대 · 헤더 · 버튼 · 입력 · 배지 · 카드 · 탭
                      모달 · 토스트 · 빈 화면 · 쪽 넘김 · 알림줄 · 별점 · 내비 · 바닥글
     2. Gift 카드 · 판매자 카드
     3. HOME / MARKET / 매물 상세 / 판매자 프로필 / 커뮤니티 / 알림 / 관리자
     4. 반응형      — 1180 · 1100 · 980 · 860 · 620 · 430 · 380
     5. 화면 품질 향상 (2026-08-24) — pages-user · pages-admin · pages-community · ui
     6. 거래 정직성 (2026-08-25)    — 관리자 거래 점검 · 거래 숫자 · SOLD
   ========================================================================== */

/* ── 제목 크기 ─────────────────────────────────────────────────────
   지금까지 h1·h2·h3 에 크기를 정해 준 곳이 화면마다 따로 있었고, 아무 데도
   안 걸린 제목은 브라우저 기본값(h1 2em=30px · h2 1.5em=22.5px · h3 1.17em)으로
   나왔다. 그래서 같은 뜻의 제목이 화면마다 조금씩 다른 크기로 보였다.
   여기서 한 벌로 못을 박는다 — 화면별 규칙(.hero h1 · .sec-hd h2 …)은
   클래스가 붙어 있어 이보다 세므로 그대로 이긴다. */
h1 { font-size: var(--f-3xl); }
h2 { font-size: var(--f-xl); }
h3 { font-size: var(--f-lg); }
h4 { font-size: var(--f-base); }

/* ── 뼈대 ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.page { padding: var(--s7) 0 var(--s10); min-height: 60vh; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-b { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.gap1 { gap: var(--s1) } .gap2 { gap: var(--s2) } .gap3 { gap: var(--s3) }
.gap4 { gap: var(--s4) } .gap5 { gap: var(--s5) } .gap6 { gap: var(--s6) }
.grow { flex: 1; min-width: 0; }
.wrapx { flex-wrap: wrap; }
.hide { display: none !important; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.muted2 { color: var(--text-3); }
.tnum { font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll-x::-webkit-scrollbar { height: 6px; }

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--hdr-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-size: var(--f-lg); font-weight: 800; letter-spacing: .04em; }

.gnb { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
/* 메뉴 글자는 사전을 지난다(한국어 기본 · 영어 보조).
   영어일 때만 대문자로 보이게 하는 일은 **여기서** 한다 —
   사전 값을 대문자로 적으면 바닥글·화면 제목까지 대문자가 되어 어색해진다.
   한글에는 대문자가 없으므로 이 규칙이 한국어 화면에는 아무 영향이 없다. */
.gnb a {
  padding: 8px 11px; border-radius: var(--r-sm); white-space: nowrap;
  font-size: var(--f-md); font-weight: 600; color: var(--text-2);
  letter-spacing: .02em; text-transform: uppercase;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.gnb a:hover { color: var(--text); background: var(--surface-2); }
.gnb a.on { color: var(--text); background: var(--surface-3); }
/* 「안전거래」 — 메뉴 첫 칸. 방패 그림과 함께, 다른 칸보다 한 톤 눈에 띄게(2026-11-13) */
.gnb a.gnb-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-fg); }
.gnb a.gnb-safe .gnb-ic { display: inline-flex; }
.gnb a.gnb-safe:hover, .gnb a.gnb-safe.on { color: var(--accent-fg); background: var(--accent-soft); }
/* 폰 머리말의 방패 단추 — 메뉴 줄이 보이는 넓은 화면에서는 감춘다(같은 곳 가는 길을 둘 두지 않는다) */
.safebtn { color: var(--accent-fg); }
@media (min-width: 981px) { .safebtn { display: none !important; } }

.hdr-r { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
/* 언어 단추 칸 — 폰(한 줄)에서는 오른쪽 묶음 바로 앞에, 넓은 화면(두 줄)에서는
   왼쪽 위에 선다. 자리를 미는 것은 이 칸이 한다(.hdr-r 은 그 뒤에 붙는다). */
.hdr-l { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { display: none; }
#joinBtn { display: none; }

/* ── 넓은 화면 머리말 — 로고 가운데 · 그 아래 카테고리 줄 (운영자 결정 · 2026-11-12)
   보여 주신 시계 거래소 첫 화면과 같은 짜임이다.
     윗줄  : [언어]            [로고 GiftTalk]            [로그인 · 회원가입 · 매물등록]
     아랫줄:        마켓   시세   커뮤니티   판매완료   판매자   랭킹
   ★ 두 줄짜리 머리말은 키가 커서(약 150px) 화면에 붙여 두면 읽을 자리를 먹는다.
     그래서 넓은 화면에서는 붙여 두지 않고(sticky 해제) 함께 올라가게 한다.
     --header-h 를 0 으로 두는 이유도 그것이다 — 머리말 높이만큼 띄우던
     .detail-media · .admnav 의 붙는 자리가 이제 화면 맨 위에서 16px 이다.
   ★ 980px 이하(폰·태블릿)는 예전 한 줄 머리말 그대로다. 폰이 PC보다 중요하다. */
@media (min-width: 981px) {
  :root { --header-h: 0px; }
  .hdr { position: relative; height: auto; background: var(--bg);
         backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr;
            grid-template-areas: "l brand r" "nav nav nav";
            align-items: center; gap: 0 var(--s4); padding-top: var(--s6); }
  .hdr-l { grid-area: l; justify-self: start; margin-left: 0; }
  .brand { grid-area: brand; gap: var(--s3); }
  .hdr-r { grid-area: r; justify-self: end; gap: var(--s1); }
  /* ★ .hdr 를 붙여 한 단계 세게 잡는다 — 아래쪽(2190줄 근처)의 .brand-mark 7px 규칙이
       같은 세기라 나중 것이 이겨, 키운 로고에 7px 모서리가 붙었다(교차검증에서 잡았다).
       로고 그림에는 어두운 네모 바탕이 구워져 있어 모서리가 덜 둥글면 그 네모가 보인다. */
  .hdr .brand-mark { width: 54px; height: 54px; border-radius: 12px; }
  .brand-name { font-size: var(--f-3xl); letter-spacing: .14em; }
  .brand-sub { display: block; margin-top: 6px; font-size: var(--f-xs); font-weight: 600;
               letter-spacing: .32em; color: var(--text-3); }

  /* 오른쪽 위는 단추가 아니라 **글자 줄**이다 — 보여 주신 화면의 「로그인 회원가입 문의하기」 */
  .hdr-r .btn { height: auto; min-height: 36px; padding: 0 var(--s2); border: 0; background: none;
                box-shadow: none; font-size: var(--f-md); font-weight: 500; color: var(--text-2); }
  .hdr-r .btn:hover { color: var(--text); background: none; }
  #joinBtn { display: inline-flex; }
  /* 「매물등록」 은 판매자에게 가장 중요한 길이라 색으로만 짚어 준다
     (보여 주신 화면의 붉은 「주얼리특별전」 자리와 같은 역할) */
  .hdr-r #sellBtn, .hdr-r #admBtn { color: var(--accent); font-weight: 700; }
  .hdr-r #sellBtn:hover { color: var(--accent-2, var(--accent)); text-decoration: underline; text-underline-offset: 5px; }

  .gnb { grid-area: nav; justify-content: center; gap: clamp(20px, 3.6vw, 64px);
         margin-top: var(--s5); height: 60px; }
  .gnb a { padding: 0 var(--s1); height: 100%; display: flex; align-items: center;
           border-radius: 0; background: none; font-size: var(--f-lg); font-weight: 700;
           color: var(--text); border-bottom: 2px solid transparent; }
  .gnb a:hover { background: none; color: var(--accent); }
  .gnb a.on { background: none; color: var(--accent); border-bottom-color: var(--accent); }
}

/* 헤더 검색 */
.hsearch { position: relative; width: clamp(150px, 17vw, 250px); }

/* 아이콘 버튼 */
.iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid transparent; transition: .15s var(--ease);
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn .dot {
  position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: var(--r-full);
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}

/* ── 버튼 ─────────────────────────────────────────────────────────── */
/* ★ 2026-11-18 고급 단추(사장님 결정 ③ 「글자 단추 그대로 · 디자인으로」 · 설계 97 §4 · 시험 tests/button-finish.test.js)
     판(.panel · .card)이 받은 「위에서 오는 빛」을 단추도 받는다 — 옅은 세로 그라디언트 · 윗변 안쪽 빛 1px · 아랫변 안쪽 그늘 1px ·
     아래로만 떨어지는 그림자. 채운 단추(primary · tg)만 제 색 그림자를 아래로 짧게. 사방 빛 · 금박 · 반짝이 없음.
   · 색 · 빛 · 그림자 값은 tokens.css 「단추 결」(--btn-* · 다크 / 화이트 두 벌)만 부른다 — 이 구역에 # 색 · rgba 를 적지 않는다.
   · 그림자는 조각 다섯(--b-veil 막 · --b-press 누름 그늘 · --b-hi 윗변 빛 · --b-lo 아랫변 그늘 · --b-drop 떨어지는 그림자)을
     .btn 한 줄이 모아 그린다. **상태(올림 · 누름)는 조각 값만 바꾼다** — 상태 규칙이 box-shadow 를 직접 다시 적으면
     box-shadow 를 따로 정한 단추(머리말 글자 줄 .hdr-r .btn · 색 없는 단추)에도 올릴 때 그림자가 생긴다.
   · 올림 · 누름은 배경색이 아니라 안쪽 막(inset 0 0 0 999px)이다 — 그라디언트는 transition 이 안 된다(motion.css 목록에 box-shadow).
   · 상태 규칙에 background: 단축을 쓰지 않는다 — 단축은 background-image(그라디언트)를 지운다(검토 하5). 색이 필요하면 background-color.
   · 키보드 초점 고리는 이 구역 **맨 뒤**의 .btn.btn:focus-visible 하나다(아래 주석). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s4); border-radius: var(--r-sm);
  font-size: var(--f-md); font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line-2); background-color: var(--surface-2); color: var(--text);
  background-image: linear-gradient(180deg, var(--btn-sec-top), var(--btn-sec-bot));
  --b-veil: 0 0 0 0 transparent; --b-press: 0 0 0 0 transparent;
  --b-hi: inset 0 1px 0 var(--btn-hi-sec); --b-lo: inset 0 -1px 0 var(--btn-lo); --b-drop: var(--btn-drop);
  box-shadow: var(--b-veil), var(--b-press), var(--b-hi), var(--b-lo), var(--b-drop);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease);
}
.btn:hover { background-color: var(--surface-hover); border-color: var(--line-3); --b-veil: inset 0 0 0 999px var(--btn-veil-hover-sec); }
/* 누름 — 1px 내려가며 안쪽 그늘 하나(motion.css 의 scale(.97) 은 걷었다 · 글자가 흐려진다). 떨어지는 그림자 · 윗변 빛은 눌린 동안 끈다 */
.btn:active {
  transform: translateY(1px);
  --b-veil: inset 0 0 0 999px var(--btn-veil-press); --b-press: var(--btn-press-in);
  --b-hi: 0 0 0 0 transparent; --b-lo: 0 0 0 0 transparent; --b-drop: 0 0 0 0 transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; background-image: none; }

.btn-primary {
  background-color: var(--accent); background-image: linear-gradient(180deg, var(--btn-pri-top), var(--btn-pri-bot));
  border-color: var(--btn-pri-line); color: var(--on-accent);
  --b-hi: inset 0 1px 0 var(--btn-hi); --b-drop: var(--btn-drop-pri);
}
/* 화이트 화면의 올림 막은 어둡게(tokens.css) — 밝게 하면 흰 글자의 윗단이 4.17:1 */
.btn-primary:hover { background-color: var(--accent-2); border-color: var(--btn-pri-line); --b-veil: inset 0 0 0 999px var(--btn-veil-hover); }
.btn-primary:active { --b-veil: inset 0 0 0 999px var(--btn-veil-press); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
/* 색 없는 단추는 면 · 빛 · 그림자 없이(예전 그대로 평평하다) */
.btn-ghost, .btn-quiet { background-image: none; box-shadow: none; }
.btn-danger {
  background-color: var(--danger-soft); background-image: none; border-color: var(--danger-line); color: var(--danger-fg);
  --b-lo: 0 0 0 0 transparent; --b-drop: 0 0 0 0 transparent;
}
.btn-danger:hover { background-color: var(--danger-hover); }
.btn-tg {
  background-color: var(--tg); background-image: linear-gradient(180deg, var(--btn-tg-top), var(--btn-tg-bot));
  border-color: var(--btn-tg-line); color: var(--on-tg);
  --b-hi: inset 0 1px 0 var(--btn-hi); --b-drop: var(--btn-drop-tg);
}
/* tg 는 올림 막 없이 테두리만 — 글자가 어두운 색(--on-tg)이라 막을 씌우면 대비가 준다(검토 하4) */
.btn-tg:hover { background-color: var(--tg-hover); border-color: var(--btn-tg-top); --b-veil: 0 0 0 0 transparent; }
.btn-tg:active { --b-veil: inset 0 0 0 999px var(--btn-veil-press); }
.btn-lg { height: 48px; padding: 0 var(--s6); font-size: var(--f-lg); border-radius: var(--r-md); }
/* 작은 단추(표 · 목록 248곳)는 그림자를 떨어뜨리지 않는다 — 줄마다 그림자가 지면 지저분하다. 윗변 빛만 */
.btn-sm { height: 32px; padding: 0 var(--s3); font-size: var(--f-sm); border-radius: var(--r-xs); --b-lo: 0 0 0 0 transparent; --b-drop: 0 0 0 0 transparent; }
.btn-full { width: 100%; }
/* 화면에 하나뿐인 채운 큰 단추 — 모서리만 한 단 둥글게(손을 올렸을 때 한 번 지나가는 빛은 motion.css) */
.btn-cta { border-radius: var(--r-md); letter-spacing: -.01em; }

/* 한 줄을 통째로 쓰는 단추는 **글이 접혀도 된다.**
   .btn 의 white-space: nowrap 이 그대로면 긴 글자(「Telegram으로 판매자에게 연락」)가
   안 접혀서 상자를 밀어낸다 — 320px 폰에서 매물 상세가 통째로 2px 넘쳐
   가로 스크롤이 생겼다(실측: 이 단추의 최소폭이 306px, 쓸 수 있는 폭은 288px).
   이 사이트에서 가장 중요한 단추라 좁은 화면에서 깨지면 안 된다. */
.btn-full { white-space: normal; min-width: 0; line-height: 1.25; height: auto; min-height: 48px;
            padding-top: 8px; padding-bottom: 8px; }
.btn-full svg { flex-shrink: 0; }
/* 높이를 자동으로 바꿨으므로, 작은 단추는 원래 높이를 지켜 준다 */
.btn-sm.btn-full { min-height: 34px; }
.btn-icon { padding: 0; width: 40px; }
.btn-icon.btn-sm { width: 32px; }
/* 손가락 기기에서 작은 단추의 누르는 자리 44px 은 아래 「화면 문법 ⑥ 딱지 · 칩」의 손가락 묶음에 .chip 과 함께 있다 */
/* 늘 어두운 그림 위(멤버십 · 배너 · 로그인 그림 칸 · 선물 그림 칸 — 아래 「화이트 모드에서도 … 어두운 그림 위」 묶음과 같은 칸)는
   화이트 화면에서도 단추가 다크 결이다 — 안 그러면 어두운 그림 위에 흰 단추 면이 생긴다.
   (이름표 차례를 그 묶음과 다르게 적는다 — 그 묶음을 글자로 찾는 시험 review4-ui 가 이 줄을 먼저 집지 않게) */
.mship, .authart, .br-card.bslide, .gimg {
  --btn-sec-top: var(--btn-dk-sec-top); --btn-sec-bot: var(--btn-dk-sec-bot); --btn-hi-sec: var(--btn-dk-hi-sec);
  --btn-lo: var(--btn-dk-lo); --btn-drop: var(--btn-dk-drop); --btn-veil-hover-sec: var(--btn-dk-veil-hover-sec);
  --btn-ring: var(--btn-dk-ring); --btn-ring-gap: var(--btn-dk-ring-gap);
}
/* 매물 상세 「판매자 페이지 보기」 — 옅은 면 · 글자는 그 자리 규칙(.ld-act .btn.ld-go · listing-detail.test.js) 그대로, 결은 윗변 빛만.
   이름표 차례를 .ld-go.btn 으로 적는다 — 그 자리 규칙을 글자로 찾는 시험이 이 줄을 먼저 집지 않게(세기는 같은 0,3,0 · 초점 규칙보다 앞) */
.ld-act .ld-go.btn { box-shadow: inset 0 1px 0 var(--btn-hi-sec); }
/* ★ 키보드 초점 — 반드시 이 구역 **맨 뒤** · 세기 0,3,0(.btn.btn:focus-visible)로 위의 0,2,0 · 0,3,0 상태 규칙을 모두 이긴다(검토 H3).
     예전에는 tokens.css 의 전역 :focus-visible{outline:2px solid var(--accent)} 가 단추에도 그렸다 — 이제 단추는 두 겹 고리
     (안쪽 2px 바탕색 틈 + 바깥 2px 고리 · 채운 단추 위에서도 고리가 갈린다)로 그리고, outline 은 지우지 않고 투명으로 남긴다:
     Windows 고대비(forced-colors)에서는 box-shadow 가 지워지고 투명 outline 이 시스템 색으로 그려진다.
     이 뒤(파일 어디서든)에 .btn 을 0,3,0 이상으로 잡아 box-shadow · outline 을 다시 적으면 고리가 사라진다(시험 ⑦ 이 훑는다). */
.btn.btn:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--btn-ring-gap), 0 0 0 4px var(--btn-ring);
}

/* ── 입력 ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); }
/* .field 안이든 밖이든 설명 줄은 한 가지 모양이다.
   (.field .hint 로 좁혀 두었더니 .field 밖의 설명 줄은 본문 크기로 나오고,
    같은 내용의 쌍둥이 규칙 .selfhint 가 따로 생겼다) */
.hint, .selfhint { font-size: var(--f-xs); color: var(--text-3); line-height: 1.5; }
.field .err { font-size: var(--f-xs); color: var(--danger-fg); }

.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text); font-size: var(--f-base);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.input, .select { height: 42px; padding: 0 var(--s3); }
.textarea { padding: 11px var(--s3); min-height: 110px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
/* ★ outline 을 지우지 않는다. 예전에는 **글자 칸만** 포커스 표시가 없어서,
   키보드로 쓰는 분이 지금 어느 칸에 있는지 알 수 없었다(다른 요소는 다 보였다).
   :focus-visible 은 마우스로 눌렀을 때는 안 뜨므로 보기에도 지저분하지 않다
   (공통 규칙은 tokens.css:110). */
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); background: var(--surface-2); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717D95' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.input-affix { position: relative; }
.input-affix .suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: var(--f-sm); font-weight: 700; color: var(--text-3); pointer-events: none;
}
.input-affix .input { padding-right: 52px; }

/* ── 배지 ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: var(--pill-h-sm); padding: 0 8px; border-radius: var(--r-xs);
  font-size: var(--f-xs); font-weight: 800; letter-spacing: 0;
  border: 1px solid transparent; white-space: nowrap; line-height: 1;
}
.badge svg { width: 12px; height: 12px; }
.badge-new      { color: var(--tier-new);      background: var(--badge-new-bg);    border-color: var(--badge-new-line); }
.badge-active   { color: var(--tier-active);   background: var(--badge-active-bg); border-color: var(--badge-active-line); }
.badge-trusted  { color: var(--tier-trusted);  background: var(--ok-soft);        border-color: rgba(52,188,133,.32); }
.badge-verified { color: var(--tier-verified); background: var(--accent-soft);    border-color: var(--accent-line); }
.badge-top      { color: var(--tier-top);      background: var(--gold-soft);      border-color: rgba(199,167,106,.34); }
.badge-tg       { color: var(--tg-fg); background: var(--badge-tg-bg); border-color: var(--badge-tg-line); }
.badge-warn     { color: var(--warn); background: var(--warn-soft); border-color: rgba(217,166,60,.3); }
.badge-mock     { color: var(--text-3); background: var(--surface-3); border-color: var(--line-2); }
/* 활동등급 · 인증 딱지 — 그림 + 한국어 이름 (2026-11-15 · ui.js U.tierBadge · U.verifiedBadge).
   색 틀은 위 badge-* 그대로. 줄이 좁으면 딱지가 통째로 다음 줄로 내려가고(부모가 flex-wrap), 딱지 안에서는 그림과 이름이 갈라지지 않는다.
   그림 크기는 tokens.css 의 --tier-ic-*. 큰 딱지(tb-lg)는 판매자 프로필 「판단하는 세 가지」 · 가이드 마크 설명에서만 쓴다.
   카드의 판매자 줄처럼 좁은 줄은 그림만(tb-c) — 이름은 aria-label · title 이 읽어 준다. */
.badge.tbadge { gap: 4px; padding-left: 4px; flex: 0 0 auto; max-width: 100%; }
.tbadge .tier-ic { flex: 0 0 auto; width: var(--tier-ic-sm); height: var(--tier-ic-sm); object-fit: contain; }
.tbadge .tier-ic.is-broken { display: none; }
.tbadge .tb-nm { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge.tbadge.tb-lg { height: auto; min-height: 36px; gap: 6px; padding: 3px 10px 3px 4px; font-size: var(--f-sm); }
.tb-lg .tier-ic { width: var(--tier-ic-lg); height: var(--tier-ic-lg); }
/* 큰 딱지는 칸이 좁으면 이름을 낱말 사이에서 접는다(「TOP SELLER」가 가이드 조건 카드 768px 에서 4px 잘렸다 · 한글 이름은 낱말 안에서 쪼개지 않는다) */
.tb-lg .tb-nm { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.2; }
.badge.tbadge.tb-c { padding: 0 3px; }
.tb-c .tier-ic { width: var(--tier-ic-xs); height: var(--tier-ic-xs); }
.tb-c.tb-noimg::after { content: attr(data-nm); }

.st { display: inline-flex; align-items: center; gap: 5px; height: var(--pill-h-sm); padding: 0 9px;
      border-radius: var(--r-xs); font-size: var(--f-xs); font-weight: 800; line-height: 1; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-AVAILABLE { color: var(--ok); background: var(--ok-soft); }
.st-RESERVED  { color: var(--warn); background: var(--warn-soft); }
.st-SOLD      { color: var(--text-3); background: var(--surface-3); }
.st-CANCELLED { color: var(--text-4); background: var(--surface-3); }

/* ── 아바타 ───────────────────────────────────────────────────────── */
.av { border-radius: 50%; background: var(--surface-3); object-fit: cover; flex-shrink: 0; display: block; }
.av-16 { width: 16px; height: 16px } .av-20 { width: 20px; height: 20px }
.av-24 { width: 24px; height: 24px } .av-28 { width: 28px; height: 28px }
.av-32 { width: 32px; height: 32px } .av-40 { width: 40px; height: 40px }
.av-48 { width: 48px; height: 48px } .av-72 { width: 72px; height: 72px }
.av-96 { width: 96px; height: 96px }

/* 네모 썸네일 — 사람 얼굴이 아닌 것(선물 컬렉션 그림·글에 붙인 사진)에 쓴다.
   .av 를 갖다 쓰면 두 가지가 어긋난다: ①동그랗게 잘려 무엇인지 알기 어렵고
   ②그림을 못 받으면 ui.js 의 대비책이 **사람 실루엣**으로 바꿔 버린다. */
.thumb { border-radius: var(--r-xs); background: var(--surface-3); object-fit: cover;
         flex-shrink: 0; display: block; }
.thumb-24 { width: 24px; height: 24px } .thumb-48 { width: 48px; height: 48px }
.av-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent-line); }

/* ── 카드 ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.card-pad { padding: var(--s5); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }

/* ── 섹션 머리 ────────────────────────────────────────────────────── */
.sec { margin-bottom: var(--s8); }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.sec-hd h2 { font-size: var(--f-xl); }
.sec-hd .sub { font-size: var(--f-sm); color: var(--text-3); margin-top: 3px; }
.sec-more { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.sec-more:hover { color: var(--accent); }


/* ══════════════════════════════════════════════════════════════════════
   화면 머리(제목 줄) — 한 벌
   ──────────────────────────────────────────────────────────────────────
   MARKET·SOLD·COMMUNITY·COLLECTIONS·SELLERS·RANKING·검색·알림·공지가
   전부 이 뼈대를 쓴다. 화면마다 제목 크기와 설명 줄 자리가 달라지면
   같은 사이트를 돌아다니는 느낌이 끊긴다.

     <div class="pagehd">
       <div class="pagehd-t"><h1>…</h1><p class="muted">…</p></div>
       <div class="pagehd-a">…주된 단추…</div>        ← 없으면 통째로 생략
     </div>
   ════════════════════════════════════════════════════════════════════ */
.pagehd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
  margin-bottom: var(--s5);
}
/* .pagehd-t 를 아직 안 붙인 옛 뼈대(<div> 만 감싼 것)도 같은 모양이 되게 한다 */
.pagehd > div { flex: 1 1 260px; min-width: 0; }
.pagehd h1 { font-size: var(--f-3xl); letter-spacing: -.02em; }
.pagehd p { margin-top: 4px; font-size: var(--f-md); line-height: 1.55; }

/* 주된 행동은 늘 오른쪽 끝이다. 화면마다 좌우가 바뀌면 손이 매번 헤맨다. */
.pagehd-a { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
/* ★ 위의 `.pagehd > div { flex: 1 1 260px }` 가 더 세서 단추 칸까지 늘어나, 단추가
     오른쪽 끝이 아니라 가운데쯤 떠 있었다(관리자 「사이트로 돌아가기」에서 보였다 ·
     2026-11-13). 같은 세기로 한 번 더 적어 이긴다. */
.pagehd > .pagehd-a { flex: 0 0 auto; justify-content: flex-end; }

/* 세로로 흐르는 글 상자(공지·글 상세) 안에서는 상자의 gap 이 이미 자리를 준다 */
.postwrap.cml-doc > .pagehd { margin-bottom: 0; }

@media (max-width: 640px) {
  .pagehd { align-items: flex-start; gap: var(--s3); margin-bottom: var(--s4); }
  .pagehd h1 { font-size: var(--f-2xl); }
  .pagehd p { font-size: var(--f-sm); }
  /* 폰에서는 제목 옆에 단추를 끼우지 않는다 — 둘 다 좁아져 둘 다 누르기 어려워진다.
     주된 단추(btn-primary)만 한 줄을 통째로 쓰고, 곁다리는 원래 크기로 둔다. */
  .pagehd-a { width: 100%; }
  .pagehd-a > .btn-primary { flex: 1; justify-content: center; }
}

/* ── 기다리는 동안 보이는 자리 ────────────────────────────────────────
   두 가지뿐이다. '고르는 것'(매물·컬렉션·판매자)은 카드 .sk-card,
   '기록·글'(거래·후기·공지·순위)은 줄 .sk-row.
   탭마다 나올 것이 다른데 늘 카드만 깔아 두면 화면이 한 번 접혔다 펴진다. */
.skrows { display: grid; gap: var(--s3); }
.sk-row { height: 88px; border-radius: var(--r-md); }

/* ── 칸 하나가 비었을 때 ──────────────────────────────────────────────
   화면 전체가 빌 때(.empty)와 칸 하나가 빌 때는 여백이 달라야 한다.
   그렇다고 칸마다 문장을 직접 그리면 또 화면마다 제각각이 된다 —
   같은 G.empty 를 쓰되 자리만 좁힌다. */
.empty-slot .empty { padding: var(--s6) var(--s4); }
.empty-slot .empty .ei { width: 44px; height: 44px; margin-bottom: var(--s3); }
.empty-slot .empty h4 { font-size: var(--f-lg); }
.empty-slot .empty .btn { margin-top: var(--s4); }

/* ── 운영자에게만 보이는 띠 ───────────────────────────────────────
   배포가 어긋났을 때 머리말 위에 뜬다. 손님에게는 뜨지 않는다
   (core.js 의 G.checkDeploy·G.expectKeys 가 운영자일 때만 부른다). */
#opsbar {
  display: flex; align-items: center; gap: var(--s2);
  padding: 9px var(--s5);
  background: var(--warn-soft); border-bottom: 1px solid rgba(217,166,60,.32);
  color: var(--warn); font-size: var(--f-sm); line-height: 1.45;
}
#opsbar .ob-i { display: flex; flex-shrink: 0; }
#opsbar .ob-t { flex: 1; min-width: 0; }
#opsbar .ob-t b { color: var(--warn); }
#opsbar .ob-x {
  flex-shrink: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: var(--r-xs);
  color: inherit; opacity: .7;
}
#opsbar .ob-x:hover { opacity: 1; background: rgba(217,166,60,.14); }
@media (max-width: 640px) { #opsbar { padding: 8px var(--s4); font-size: var(--f-xs); } }

/* 첫 화면의 「처음이신가요?」 한 줄 — 조용히, 그러나 눈에 띄게 */
.firsttime {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-top: var(--s4); padding: 8px var(--s4); border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font-size: var(--f-sm);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.firsttime b { color: var(--accent); font-weight: 700; }
.firsttime svg { flex-shrink: 0; opacity: .75; }
.firsttime:hover { border-color: var(--accent-line); color: var(--text); }
@media (max-width: 480px) { .firsttime { font-size: var(--f-xs); padding: 7px var(--s3); } }

/* ── 초보자 가이드 카드 ───────────────────────────────────────────
   글을 잔뜩 늘어놓으면 아무도 안 읽는다. 번호를 붙여 「차례가 있다」 를
   눈으로 알게 하고, 한 장씩 짧게 보여 준다. */
.guidegrid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.guidecard {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); transition: border-color .15s var(--ease), background .15s var(--ease);
}
/* background 단축 속성을 쓰면 아래 깊이 그라디언트가 통째로 지워져 깜빡인다 */
.guidecard:hover { border-color: var(--accent-line); background-color: var(--surface-2); }
.guidecard .gnum {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: var(--f-sm); font-weight: 800;
}
.guidecard > svg { flex-shrink: 0; color: var(--text-3); }
.guidecard .muted2 { font-size: var(--f-sm); line-height: 1.5; }
@media (max-width: 640px) { .guidegrid { grid-template-columns: 1fr; } }

/* 가이드 한 편의 끝 — 앞뒤 글.
   한 편 읽고 목록으로 돌아가게 하면 끝까지 읽는 사람이 없다.
   ★ 좁은 폰에서 한 줄로 두면 제목 두 개가 서로를 밀어 가로 스크롤이 생긴다.
     그래서 `1fr 1fr` 이 아니라 접히는 그리드다. */
.docnav { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; margin-top: var(--s5); }
.docnav-a {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.docnav-a:hover { border-color: var(--accent-line); background: var(--surface-2); }
.docnav-a .muted2 { display: inline-flex; align-items: center; gap: 4px; font-size: var(--f-sm); }
.docnav-a b { font-size: var(--f-md); line-height: 1.4; }
.docnav-n { text-align: right; align-items: flex-end; }
.docnav-n .muted2 { flex-direction: row-reverse; }
@media (max-width: 560px) {
  .docnav { grid-template-columns: 1fr; }
  .docnav-n { text-align: left; align-items: flex-start; }
  .docnav-n .muted2 { flex-direction: row; }
}

/* ── 탭 ───────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--s5);
        overflow-x: auto; scrollbar-width: none;
        /* ★ 옆으로 더 있다는 것을 보이게 한다. 예전에는 탭 일곱 개 중 서너 개가
           화면 밖에 있는데 밀 수 있다는 표시가 없어, 그런 탭이 있는 줄도 몰랐다.
           오른쪽 끝을 살짝 흐리게 해서 「더 있다」를 알린다. */
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
/* 끝까지 밀었으면 흐림을 없앤다 — 다 봤는데도 흐리면 아직 더 있는 줄 안다 */
.tabs.at-end { -webkit-mask-image: none; mask-image: none; }
/* 좁은 폰에서 마지막 칸이 잘리지 않게 옆으로 밀어서 본다.
   줄바꿈으로 두 줄이 되면 밑줄이 어긋나 보이므로 가로 스크롤을 쓴다. */
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs > a {
  padding: 10px 15px; font-size: var(--f-md); font-weight: 700; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: 0 0 auto;
  transition: color .15s var(--ease);
}
.tabs button:hover, .tabs > a:hover { color: var(--text-2); }
.tabs button.on, .tabs > a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .cnt { font-size: var(--f-xs); color: var(--text-4); margin-left: 5px; }

.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip {
  height: var(--pill-h-md); padding: 0 13px; border-radius: var(--r-full); white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: var(--f-sm); font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px; transition: .15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-fg); }

/* ── 모달 · 바텀시트 ──────────────────────────────────────────────── */
.ovl {
  position: fixed; inset: 0; z-index: 200; background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: var(--s5);
  animation: fade .16s var(--ease);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes slideup { from { transform: translateY(100%) } to { transform: none } }

.modal {
  width: 100%; max-width: 520px;
  /* 텔레그램 인앱 브라우저와 모바일 사파리에서 100vh 는 주소창을 뺀 높이가 아니라
     '주소창이 숨었을 때'의 높이다. 그 값으로 창을 잡으면 아래 단추(취소·적용)가
     화면 밖으로 밀려 눌리지 않는다. dvh 는 지금 보이는 높이를 준다.
     dvh 를 모르는 낡은 브라우저는 윗줄(vh)을 그대로 쓴다. */
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); box-shadow: var(--sh-3);
  display: flex; flex-direction: column; animation: pop .18s var(--ease);
}
.modal-lg { max-width: 720px; }
.modal-hd { display: flex; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) var(--s3); }
.modal-hd h3 { font-size: var(--f-lg); flex: 1; }
.modal-bd { padding: var(--s2) var(--s5) var(--s5); overflow-y: auto; }
/* 단추가 한 줄에 다 못 서면 다음 줄로 내려간다(2026-11-14 교차검증 2차). 줄바꿈이 없을 때는, 영어 화면의 폰(434px 아래)에서
   회원 「관리」 창의 단추 셋(Sign out everywhere · Suspend member · Save)이 창 밖으로 밀려 「Save」가 안 보였다. */
.modal-ft { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.modal-ft .btn { flex: 1; }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.toasts {
  position: fixed; z-index: 300; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--mobile-nav-h) + 16px); display: flex; flex-direction: column;
  gap: var(--s2); pointer-events: none; width: min(420px, calc(100vw - 32px));
}
@media (min-width: 861px) { .toasts { bottom: 24px; } }
.toast {
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--r-md); padding: 12px var(--s4); font-size: var(--f-md); font-weight: 600;
  box-shadow: var(--sh-3); animation: pop .18s var(--ease); display: flex; align-items: center; gap: var(--s2);
}
.toast-ok { border-color: rgba(52,188,133,.4); }
.toast-ok .ti { color: var(--ok); }
.toast-err { border-color: rgba(224,90,90,.4); }
.toast-err .ti { color: var(--danger); }
.toast .ti { flex-shrink: 0; line-height: 0; }

/* ── 로딩 뼈대 · 빈 화면 ─────────────────────────────────────────── */
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
      background-size: 400% 100%; animation: shim 1.3s ease infinite; border-radius: var(--r-sm); }
@keyframes shim { from { background-position: 100% 50% } to { background-position: 0 50% } }
.sk-card { height: 292px; border-radius: var(--r-lg); }
.sk-line { height: 13px; }

/* 크기·여백은 아래 「ui.js 에서 온 것」 구역에서 한 번에 정한다.
   여기서는 이 구역 밖으로 나가지 않는 것만 남긴다. */
.empty { text-align: center; color: var(--text-3); }
.empty p { font-size: var(--f-md); line-height: 1.6; }

/* ── 페이지 넘기기 ────────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s7); flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: var(--f-sm); font-weight: 700;
}
.pager button:hover:not(:disabled) { border-color: var(--line-3); color: var(--text); }
.pager button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ── 알림줄 ───────────────────────────────────────────────────────── */
.note {
  display: flex; gap: var(--s3); padding: 13px var(--s4);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); font-size: var(--f-sm); color: var(--text-2); line-height: 1.6;
}
.note .ni { flex-shrink: 0; color: var(--text-3); line-height: 0; margin-top: 2px; }
.note-warn { background: var(--warn-soft); border-color: rgba(217,166,60,.3); color: var(--warn-fg); }
.note-warn .ni { color: var(--warn); }
.note-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--info-fg); }
.note-info .ni { color: var(--accent); }
.note-ok { background: var(--ok-soft); border-color: rgba(52, 188, 133, .32); color: var(--ok-fg); }
.note-ok .ni { color: var(--ok); }
/* 매물 등록에서 「움직이는 그림은 못 받았습니다」 한 줄 — 경고지만 막지는 않는다 */
.animmiss { display: flex; align-items: flex-start; gap: 5px; color: var(--warn-fg); }
.animmiss svg { flex: 0 0 auto; margin-top: 2px; }

/* ── Gift 이름·특성값의 한글 읽기 ──────────────────────────────────
   영문 원래 이름 **옆에** 작게 붙는다. 바꿔치기가 아니라 덧붙이기다 —
   손님이 텔레그램 원본과 글자를 대조해야 하고, 검색·필터도 영문으로 돈다. */
.gko {
  font-style: normal; font-size: .86em; font-weight: 500;
  color: var(--text-3); margin-left: 6px; white-space: nowrap;
}
/* ★ 한글은 영문보다 획이 촘촘해서 같은 크기라도 더 뭉개진다.
   작은 딱지(.gtrait) 안에서 11px × .86 = 9.5px 까지 내려가 「스누피」인지
   「스나피」인지 분간이 안 됐다. 딱지 안에서는 줄이지 않는다. */
.gtrait .gko { font-size: 1em; margin-left: 5px; }
/* 고른 줄은 바탕이 파래지고 글자가 하늘색(#7CC2F5)이 된다. 그런데 한글만
   회색(--text-3)으로 남아 묻혔다 — 고르기 **전보다** 안 읽히는 상태였다(4.13:1).
   줄 색을 그대로 물려받게 해서 영문과 한글이 같은 밝기가 되게 한다. */
.fopt.on .gko { color: inherit; }
/* 필터 목록은 폭이 좁다 — 이름이 길면 한글을 아랫줄로 내린다 */
.fopt .fnm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.fopt .gko { margin-left: 0; }
/* 「이 컬렉션은 아직 특성 목록이 없습니다」 — 막지는 않지만 눈에 띄어야 한다 */
.hint.is-warn { color: var(--warn-fg); }

/* ── 별점 ─────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 1px; color: var(--gold); line-height: 0; }
.stars svg { width: 14px; height: 14px; }
.stars .off { color: var(--line-3); }
.stars-lg svg { width: 20px; height: 20px; }
/* ★ 별 하나가 30×30px 에 간격 3px 이라 옆 별이 눌리기 쉬웠다.
   별점은 한 번 잘못 누르면 남의 프로필에 남는 숫자다 — 되돌리기 어렵다.
   손가락 자리를 44px 로 넓힌다(별 그림은 그대로, 누르는 자리만 커진다). */
.rate-pick { display: inline-flex; gap: 4px; }
.rate-pick button { color: var(--line-3); line-height: 0; padding: 9px;
                    min-width: 44px; min-height: 44px;
                    display: inline-flex; align-items: center; justify-content: center; }
.rate-pick button.on { color: var(--gold); }
.rate-pick svg { width: 26px; height: 26px; }

/* ── 모바일 하단 내비 ─────────────────────────────────────────────── */
.mnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--hdr-bg-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: none; align-items: stretch;
}
.mnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  /* ★ 10.5px 이었다. 그 크기는 영어 'COMMUNITY' 를 한 줄에 넣으려고 정한 값인데,
     기본 언어가 한국어가 되면서 「커뮤니티」는 네 글자라 그럴 이유가 없어졌다.
     폰에서 12px 아래 글자는 읽기 힘들고, 이 다섯 개는 사이트에서 가장 많이
     눌리는 자리다. */
  font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; position: relative;
  white-space: nowrap;              /* 두 줄로 꺾이지 않게 */
  text-transform: uppercase;        /* 영어일 때만 효과가 있다(위 .gnb 와 같은 이유) */
}
/* 아주 좁은 화면(작은 폰·텔레그램 인앱 브라우저·분할 화면)에서도 한 줄을 지킨다 */
@media (max-width: 380px) {
  /* 9px 이었다 — 너무 작다. 자간을 줄이는 것으로 자리를 만든다.
     영어일 때만 한 글자가 더 길어지므로 그때만 조금 더 줄인다. */
  .mnav a { font-size: 10.5px; letter-spacing: 0; gap: 2px; }
  html[lang="en"] .mnav a, html[lang="ru"] .mnav a { font-size: 9.5px; }
}
.mnav a.on { color: var(--accent); }
.mnav a .dot {
  position: absolute; top: 7px; left: 50%; margin-left: 4px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: var(--r-full);
  font-size: 9px; font-weight: 800; display: grid; place-items: center;
}
.mnav .sell { color: var(--accent); }

/* ── 바닥글 ───────────────────────────────────────────────────────── */
/* 바닥글 — Getgems 바닥글을 본뜬 짜임(운영자 말씀 · 2026-11-14 「하단 이렇게 벤치마킹해주세요」 · index.html 의 .ftr).
   넓은 화면: 위 줄 = 왼쪽 소개 칸(로고 · 한 줄 소개 · 테두리 단추) + 오른쪽 링크 묶음 넷 · 아래 띠 = 정책 링크 · © · 책임 안내.
   폰(≤720px): 소개 칸 → 링크 묶음(두 칸씩) → 아래 띠로 쌓인다.
   ★ `.ftr a { display: block }` 이 이 안의 단추에도 걸리므로 단추 모양은 `.ftr .ftr-…` 로 한 단계 깊게 적는다. */
.ftr { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s8); margin-top: var(--s9); color: var(--text-3); font-size: var(--f-sm); }
.ftr .ftr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s8); align-items: start; }
.ftr .ftr-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); min-width: 0; max-width: 480px; }
.ftr .ftr-logo { display: block; padding: 0; }
.ftr .ftr-logo .brand-logo { height: 40px; }
.ftr .ftr-intro { margin: 0; color: var(--text-3); font-size: var(--f-sm); line-height: 1.6; }
.ftr .ftr-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ftr .ftr-btn {
  display: inline-flex; align-items: center; gap: var(--s2); max-width: 100%;
  min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: transparent; color: var(--text); font-size: var(--f-sm); font-weight: 700; line-height: 1.3; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.ftr .ftr-btn:hover { border-color: var(--line-3); background: var(--surface-2); color: var(--text); }
.ftr .ftr-btn:focus-visible, .ftr .ftr-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ftr .ftr-btn-ic { flex: none; display: grid; place-items: center; color: var(--tg-fg); }
.ftr .ftr-tg-txt { min-width: 0; }
/* ★ 이름과 아이디는 한 줄 글로 흐른다 — 따로 놓인 flex 칸이면 320px 영어에서 이름이 두 줄로 접히며 넓이를 다 쥐고,
     @B_C114 가 오른쪽 끝으로 밀려 60px 넘게 빈 틈이 생겼다(2026-11-14 교차검증). 아이디 자체는 쪼개지 않는다 */
.ftr .ftr-tg-id { white-space: nowrap; color: var(--info-fg); font-weight: 800; }
.ftr .ftr-report .ftr-report-ic { color: var(--danger-fg); }
.ftr .ftr-report:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-fg); }
/* 묶음 다섯(2026-11-28 「사이트 소개」가 더해졌다) — 사이를 한 단 좁혀 옛 네 묶음 때와 거의 같은 폭에 선다 */
.ftr .cols { display: grid; grid-template-columns: repeat(5, auto); gap: var(--s7); }
.ftr h5 { font-size: var(--f-md); color: var(--text); margin: 0 0 var(--s3); font-weight: 800; }
/* ★ 바닥글 링크가 26px 높이에 세로 간격 0 이라 아래 링크가 눌리기 쉬웠다.
   손가락으로 누르는 자리는 44px 을 목표로 한다(폰에서만 넉넉히). */
.ftr a { display: block; padding: 3px 0; }
.ftr .cols a { padding: 5px 0; color: var(--text-2); font-weight: 600; }
.ftr .cols a:hover { color: var(--text); }
/* 「도움말」 칸의 밝기 단추도 옆 링크와 같은 글자 · 간격으로 — 바닥 색 · 굵기 400 · 3px 이라 꺼진 항목처럼 보였다(2026-11-14 교차검증) */
.ftr .cols .ftr-theme { width: 100%; padding: 5px 0; color: var(--text-2); font: inherit; font-weight: 600; }
.ftr .cols .ftr-theme:hover { color: var(--text); }
/* ★ 폰: 링크 묶음의 링크와 밝기 단추도 44px — 9px 여백으로는 38px 이었다(2026-11-14 교차검증) */
@media (max-width: 720px) {
  .ftr .cols a, .ftr .cols .ftr-theme { display: flex; align-items: center; min-height: 44px; padding: 0; }
}
.ftr a:hover { color: var(--text-2); }
.ftr .fine { line-height: 1.7; max-width: 640px; }
/* 아래 띠 — 정책 링크(실제로 있는 것만 app.js 가 채운다) · © · 책임 안내 */
.ftr .ftr-end { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }
.ftr .ftr-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.ftr .ftr-pol { display: flex; flex-wrap: wrap; gap: 0 var(--s5); max-width: 100%; padding-left: var(--s4); border-left: 1px solid var(--line-2); }
.ftr .ftr-pol:empty { display: none; }
.ftr .ftr-pol a { display: inline-flex; align-items: center; min-height: 32px; padding: 0; color: var(--text-2); font-size: var(--f-sm); }
.ftr .ftr-pol a:hover { color: var(--text); }
.ftr .ftr-pol a.is-strong { color: var(--text); font-weight: 800; }
.ftr .ftr-pol a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ftr .ftr-copy { margin: 0; color: var(--text-3); font-size: var(--f-sm); }
.ftr .ftr-end .fine { margin: 0; max-width: 820px; color: var(--text-3); font-size: var(--f-xs); }
.ftr .ftr-end .fine-sub { color: var(--text-4); }
@media (max-width: 980px) {
  .ftr .ftr-top { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .ftr .ftr-brand { max-width: none; }
  .ftr .cols { grid-template-columns: repeat(5, minmax(0, auto)); justify-content: start; gap: var(--s6) var(--s7); }
}
@media (max-width: 720px) {
  .ftr { padding-top: var(--s7); }
  .ftr .ftr-logo .brand-logo { height: 36px; }
  .ftr .ftr-btn { min-height: 44px; }
  .ftr .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
  .ftr .ftr-end { margin-top: var(--s6); }
  .ftr .ftr-line { flex-direction: column; align-items: flex-start; }
  .ftr .ftr-line { gap: 0; }
  .ftr .ftr-pol { gap: 0 var(--s4); padding-left: 0; border-left: 0; }
  .ftr .ftr-pol a { min-height: 44px; }
}

/* ============================================================================
   Gift 카드 · 판매자 카드
   ========================================================================== */

/* Gift 그림 뒤에 깔리는 배경 — Background 특성마다 다른 색을 쓴다.
   (CSP 때문에 화면 코드에서 style="" 을 쓰지 않는다. 클래스로만 바꾼다) */
/* ★ 2026-11-16 — 배경 특성이 없는 칸(컬렉션 카드 · 검색 · 미리보기)도 같은 우물(--img-well · 두 화면 모두 어두운 남색)이다.
     화이트 화면에서 옅은 칸(--gimg-a/b)과 어두운 배경 특성 칸이 한 줄에 섞였다. 아래 .bgt-* 가 이것을 덮는다(그림은 그대로) */
.gimg { position: relative; aspect-ratio: 1/1; display: grid; place-items: center;
        background: var(--img-well); overflow: hidden; }
/* ★ 직계 자식만. 예전에는 `.gimg img, .gimg svg` 라, 상자 안에 있는 **단추 속
   아이콘까지** 자기 단추의 76% 로 늘어났다(실측: 「움직임」 표시 10px→14px,
   하트 16x16→14x21 로 찌그러짐). 선물 그림만 겨눈다. */
.gimg > img, .gimg > svg { width: 76%; height: 76%; object-fit: contain; }
.bgt-onyx-black    { background: radial-gradient(circle at 50% 42%, #23262E 0%, #0E1014 72%); }
.bgt-deep-navy     { background: radial-gradient(circle at 50% 42%, #1E2E52 0%, #0D1424 72%); }
.bgt-charcoal      { background: radial-gradient(circle at 50% 42%, #2E3340 0%, #14171E 72%); }
.bgt-midnight-blue { background: radial-gradient(circle at 50% 42%, #1B3A63 0%, #0B1729 72%); }
.bgt-cocoa         { background: radial-gradient(circle at 50% 42%, #3D2C24 0%, #1A1310 72%); }
.bgt-ivory         { background: radial-gradient(circle at 50% 42%, #4A473F 0%, #22211D 72%); }
.bgt-steel-grey    { background: radial-gradient(circle at 50% 42%, #333A44 0%, #171A20 72%); }
.bgt-emerald       { background: radial-gradient(circle at 50% 42%, #1B4438 0%, #0C1F1A 72%); }
.bgt-burgundy      { background: radial-gradient(circle at 50% 42%, #4A2130 0%, #1F0F16 72%); }
.bgt-sand          { background: radial-gradient(circle at 50% 42%, #46402F 0%, #1E1B15 72%); }

.gcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.gcard:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--sh-2); }
.gimg > .st { position: absolute; top: 9px; left: 9px; z-index: 2; }
.detail-img .gimg > .st { top: 14px; left: 14px; }
/* 크기는 아래 「ui.js 에서 온 것」 구역에서 한 번에 정한다(손가락 기기까지 함께). */
.gcard .fav {
  /* 자리는 아래 「카드 그림 아래 한 줄」(.gfoot)이 정한다 — 2026-11-13 에 오른쪽 위에서 오른쪽 아래로 옮겼다.
     (그 줄이 z-index 2 다 — 배경을 다시 그린 매물에서는 정지 그림이 상자를 꽉 채우므로
      이것이 없으면 하트가 그림 뒤로 숨어 눌리지 않는다.) */
  border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2);
  background: rgba(9,12,19,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.07);
  transition: .15s var(--ease);
}
.gcard .fav:hover { color: var(--text); background: rgba(9,12,19,.8); }
.gcard .fav.on { color: var(--fav-on); }
.gcard-bd { padding: var(--s3) 13px 13px; display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.gcard-nm { font-size: var(--f-md); font-weight: 700; line-height: 1.35; }
.gcard-nm .num { color: var(--text-3); font-weight: 600; }
.gtraits { display: flex; gap: 4px; flex-wrap: wrap; }
.gtrait {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 2px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gprice { font-size: var(--f-lg); font-weight: 800; letter-spacing: -.01em; margin-top: auto; }
.gprice .u { font-size: var(--f-sm); font-weight: 700; color: var(--text-3); margin-left: 3px; }
.gseller { display: flex; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
/* ★ 이름이 먼저 줄어들지 않게 한다.
   배지(23px)와 별점(23px)이 자기 폭을 먼저 가져가서, 320px 에서 이름 몫이
   30px 밖에 안 남아 「Gi…」 로 지워졌다 — 그것도 **인증받은 판매자만**.
   배지를 얻을수록 이름이 안 보이는 셈이었다(재현했다). */
.gseller .nm { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 4.5em; }
.gseller .rt { font-size: var(--f-xs); color: var(--text-3); margin-left: auto; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
/* ★ 2026-11-14 — 이름이 안 줄게 하자(위) 이번에는 **인증 배지의 체크 그림과 별 그림이 0px 로 찌그러졌다**(빈 네모만 남고 별점은
     카드 밖으로 밀려 잘렸다 · 320 · 375px 실측 — 인증 판매자의 카드에서만). 그림과 그 상자는 줄어들지 않게 하고,
     한 줄에 다 못 서면 **별점이 다음 줄로 내려간다**(지우지도 찌그러뜨리지도 않는다). 이름은 남는 폭을 다 쓴다.
     카드의 인증 배지는 그림 하나뿐이라 22px 네모로 줄였다(글자 배지의 좌우 8px 을 그대로 쓰면 30px) */
.gseller { flex-wrap: wrap; row-gap: 4px; }
.gseller > .av, .gseller > .avwrap, .gseller .badge, .gseller .rt, .gseller svg { flex: 0 0 auto; }
.gseller .badge { height: 20px; padding: 0 4px; }
.gseller .nm { flex-basis: 0; }
/* ★ 2026-11-14 — 이름 칸의 바닥을 「4.5em 과 **글자 폭 중 작은 쪽**」으로 센다.
     바닥이 4.5em(58.5px) 고정이라, 375px 에서 트로피 판매자의 카드는 이름이 두 글자(큐브 · 22.5px)여도 별점이 다음 줄로 내려갔다
     (사진 20 + 트로피 20 + 58.5 + 별점 34 + 틈 18 = 150.8 > 142.5 · 실제 글자는 114.8px 이면 선다) — 옆 카드에는 값 위로 빈 띠가 생겼다.
     flex 아이템의 min-width: auto 는 width(4.5em)와 내용 폭 중 작은 쪽이다. 단 overflow: hidden 이면 auto 가 0 이 되어 이름이 다시
     지워지므로 clip 을 쓴다(말줄임은 그대로 듣는다). clip 을 모르는 브라우저는 위의 예전 규칙(4.5em 고정)에 머문다.
     긴 이름은 예전과 똑같다 — 4.5em 아래로는 안 줄고, 못 서면 별점이 내려간다. */
@supports (overflow: clip) {
  .gseller .nm { width: 4.5em; min-width: auto; overflow: clip; }
}
.gtime { font-size: var(--f-xs); color: var(--text-4); }

/* ── 국가 ──────────────────────────────────────────────────────────
   회원이 **직접 고른** 국가다. 인증 배지(VERIFIED) 바로 옆에 놓이는 자리가
   많으므로 배지처럼 보이게 만들지 않는다 — 테두리도 배경도 없이 국기와
   나라 이름뿐이다. 뜻이 다른 것을 같은 모양으로 그리면 하나로 읽힌다. */
.flag {
  flex: 0 0 auto; line-height: 1; font-size: 15px; letter-spacing: 0;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
/* 국기 이모지를 못 그리는 브라우저(윈도우 PC)에서 쓰는 코드 딱지.
   'KR' 두 글자가 맨몸으로 있으면 글이 깨진 것처럼 보인다 — 작은 테를 둘러
   "표시"임을 알린다. 폭은 국기 이모지와 비슷하게 잡아 줄이 흔들리지 않게. */
.flag.is-code {
  /* 윈도우 PC 는 국기 이모지를 못 그려 이 딱지가 대신 나온다 — 손님의 절반일 수
     있는 자리다. 9px 은 「US」 인지 「LIS」 인지 분간이 안 됐다. */
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 3px;
  font-family: inherit;
}
.cty { display: inline-flex; align-items: center; gap: 4px; min-width: 0; vertical-align: -1px; }
.cty .ctynm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cty + .dv { margin: 0 5px; color: var(--line-3); }
/* 「지금 고르기」 안내는 누를 수 있어야 해서 button 이다 — note 와 같아 보이게 */
.ctynote { width: 100%; text-align: left; font: inherit; cursor: pointer; }
/* 얼굴 사진 모서리의 작은 국기 — 줄의 폭을 하나도 쓰지 않는다.
   매물 카드의 판매자 줄은 375px 에서 이름 몫이 76px 뿐이라, 국기를 한 칸
   세우면 그만큼 이름이 잘린다(재현했다). 모서리에 얹어 폭을 0으로 만든다. */
.avwrap { position: relative; display: inline-flex; flex: 0 0 auto; line-height: 0; }
.avwrap > .flag {
  position: absolute; right: -2px; bottom: -2px; font-size: 11px; line-height: 1;
  border-radius: 2px; background: var(--bg-2); box-shadow: 0 0 0 1.5px var(--bg-2);
}
/* 사진 모서리에 얹히는 코드 딱지 — 7px 은 읽을 수 없었다. 사진 밖으로 조금 더
   나오게 두고 키운다(얼굴이 조금 가려지는 것보다 못 읽는 쪽이 나쁘다). */
.avwrap > .flag.is-code {
  right: -5px; bottom: -4px; font-size: 9px; padding: 1px 3px; border-radius: 3px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2);
}

/* 그리드 */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: var(--s4); }
/* 마켓 목록이 비었을 때의 안내(G.empty)는 격자 한 칸이 아니라 줄 전체를 쓴다 — 안 그러면 첫 칸(235px)에 끼어
   왼쪽으로 쏠리고 제목이 두세 줄로 꺾인다(2026-11-14 교차검증 · 번호 검색은 0건이 흔하다). */
#mgrid > .empty { grid-column: 1 / -1; }
/* 첫 화면처럼 '한 줄에 딱 맞아야' 하는 곳은 칸 수를 고정한다 (8개 = 4+4) */
.ggrid-4c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
/* 첫 화면 맨 아래 칸 (COMMUNITY) */
/* 구매희망 칸을 들어낸 뒤로 이 자리에는 커뮤니티 한 장만 선다(2026-11-09) */
/* minmax(0, 1fr) — 맨 1fr 은 글 제목(nowrap)의 길이보다 줄지 않아 320px 폰에서 상자가 화면 밖으로 밀려났다(scrollWidth 356 · 2026-11-16) */
.homefoot { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.homefoot h2 { font-size: var(--f-lg); }
.homefoot .row-b > a, .homefoot .hfposts > a { padding: 5px 0; }
/* 글 목록은 두 칸으로 눕는다 — 한 줄로 세우면 오른쪽이 통째로 빈다 */
.homefoot .hfposts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); }
.homefoot .hfposts .t1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .homefoot .hfposts { grid-template-columns: minmax(0, 1fr); } }
.ggrid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.grail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(212px, 1fr); gap: var(--s4); overflow-x: auto; padding-bottom: 4px; }

/* 판매자 카드 */
.scard { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4);
         background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
         transition: border-color .16s var(--ease), transform .16s var(--ease); }
.scard:hover { border-color: var(--line-3); transform: translateY(-2px); }
.scard-top { display: flex; align-items: center; gap: var(--s3); }
.scard-nm { font-size: var(--f-base); font-weight: 800; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.scard-tg { font-size: var(--f-xs); color: var(--text-3); }
.scard-stats { display: flex; gap: var(--s4); font-size: var(--f-xs); color: var(--text-3); }
.scard-stats b { display: block; font-size: var(--f-md); color: var(--text); font-weight: 800; }

/* 신뢰 요약 한 줄 */
.trust { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--f-sm); color: var(--text-2); }
.trust .dv { color: var(--line-3); }

/* ============================================================================
   HOME
   ========================================================================== */
.hero { padding: var(--s9) 0 var(--s8); text-align: center; position: relative; }
/* 화면 위쪽의 옅은 빛. 예전에는 좌우로 20% 삐져나가게 했더니 문서 폭이 늘어나
   폰에서 가로로 밀리는 느낌이 났다. 이제 폭 안에 두고 그라디언트만 넓게 편다. */
.hero::before {
  content: ''; position: absolute; inset: -10% 0 auto; height: 380px; z-index: -1;
  background: radial-gradient(ellipse 92% 100% at 50% 0%, rgba(61,158,232,.09), transparent 72%);
}
.hero h1 { font-size: var(--f-4xl); letter-spacing: -.02em; margin-bottom: var(--s3); }
.hero .lead { font-size: var(--f-lg); color: var(--text-2); max-width: 620px; margin: 0 auto var(--s6); line-height: 1.6; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s4);
  padding: 5px 13px; border-radius: var(--r-full); font-size: var(--f-xs); font-weight: 800;
  letter-spacing: .06em; color: var(--info-fg); background: var(--accent-soft); border: 1px solid var(--accent-line);
}

.bigsearch { position: relative; max-width: 660px; margin: 0 auto; }
.bigsearch input {
  width: 100%; height: 58px; padding: 0 128px 0 50px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full);
  font-size: var(--f-lg); color: var(--text); box-shadow: var(--sh-2);
  transition: border-color .16s var(--ease);
}
.bigsearch input:focus { border-color: var(--accent-line); }
.bigsearch input::placeholder { color: var(--text-4); }
.bigsearch .ico { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.bigsearch .go { position: absolute; right: 7px; top: 7px; height: 44px; padding: 0 var(--s5); border-radius: var(--r-full); }
.bigsearch-scope { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s3); }

.examples { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.examples span { font-size: var(--f-sm); color: var(--text-4); align-self: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin: var(--s8) 0 var(--s9); }
.stat { padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat b { display: block; font-size: var(--f-2xl); font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: var(--f-xs); color: var(--text-3); font-weight: 700; letter-spacing: .04em; }

/* 검색 미리보기 */
.sugg {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--sh-3); overflow: hidden; max-height: 440px; overflow-y: auto;
}
/* 대문자는 CSS 로 준다 — 사전 값을 대문자로 적으면 한국어까지 이상해진다
   (메뉴가 쓰는 방식과 같다: .gnb a · .mnav a) */
.sugg-h { padding: 9px var(--s4) 5px; font-size: 11px; font-weight: 800; color: var(--text-4); letter-spacing: .06em;
          text-transform: uppercase; }
.sugg-i { display: flex; align-items: center; gap: var(--s3); padding: 9px var(--s4); cursor: pointer; }
.sugg-i:hover, .sugg-i.on { background: var(--surface-2); }
.sugg-i .gimg { width: 36px; height: 36px; border-radius: var(--r-xs); aspect-ratio: auto; flex-shrink: 0; }
.sugg-i .t { font-size: var(--f-md); font-weight: 700; }
.sugg-i .s { font-size: var(--f-xs); color: var(--text-3); }
.sugg-i .p { margin-left: auto; font-size: var(--f-md); font-weight: 800; white-space: nowrap; }

/* 후기 카드 */
.rvcard { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
          display: flex; flex-direction: column; gap: var(--s2); }
.rvcard .txt { font-size: var(--f-md); color: var(--text-2); line-height: 1.6; }
.rvcard .meta { font-size: var(--f-xs); color: var(--text-4); }

/* ── 첫 화면 다듬기 (2026-11-16 · 사장님 「레이아웃이 뒤죽박죽」) ──────────────────
   · 숫자 넷 — 칸 안 가운데(오른쪽 70% 가 비어 보이던 것). 「오늘 +N」은 오른쪽 위 작은 표라 칸 높이가 같다.
   · 후기 카드 — 몸통은 위에서부터, 선물 줄은 카드 맨 아래(margin-top: auto) — 한 줄의 카드 바닥이 맞는다. 판매자 이름은 f-sm.
   · 폰(≤640) — 판매자 · 후기는 옆으로 미는 한 줄(.grail 의 흐림 · 끝 표시 · snap). 세로로 여덟 장씩 쌓여 화면이 8,000px 를 넘었다.
   · 컬렉션 줄 — 매물 카드와 같은 몸통(.gcard-bd · 이름 1줄 · 한글 읽기 1줄) + 값 · 작은 회색 줄. */
.stats .stat, #tstats .stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.stats .stat .stat-today, #tstats .stat .stat-today { position: absolute; top: var(--s2); right: var(--s3); margin: 0; }
/* 판매완료 화면의 세 칸은 폰에서 좁다(약 90px) — 「오늘 +N」을 숫자 아래 줄로 */
@media (max-width: 520px) { #tstats .stat .stat-today { position: static; } }
.rvcard .rv-by { margin-top: auto; padding-top: var(--s1); }
.rvcard .rv-who { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); }
.rvcard .rv-who:hover { color: var(--accent); }
@media (max-width: 640px) {
  .hrail.grail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--s3);
                 overflow-x: auto; scroll-snap-type: x mandatory; }
}
@media (min-width: 641px) {
  .hrail.grail { grid-auto-flow: row; overflow: visible; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
}
.gcol .gcard-bd { gap: 2px; }
.gcol .gcol-p { margin-top: var(--s1); min-height: 1.5em; font-size: var(--f-md); font-weight: 800; }
.gcol .gcol-m { font-size: var(--f-xs); color: var(--text-3); }

/* ── 검색 결과 (#/search · 2026-11-16) — 컬렉션은 작은 가로 칩 · 판매자는 한 줄 · 매물은 평소 격자 ── */
.srch-cols { display: flex; flex-wrap: wrap; gap: var(--s2); }
.srch-col { display: flex; align-items: center; gap: var(--s3); min-width: 0; max-width: 100%; padding: var(--s2) var(--s4) var(--s2) var(--s2);
            background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.srch-col:hover { border-color: var(--accent-line); }
.srch-col-im { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--img-well); overflow: hidden; }
.srch-col-im > img { width: 80%; height: 80%; object-fit: contain; }
.srch-col-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s1); min-width: 0; }
.srch-col-t b { font-size: var(--f-md); font-weight: 700; color: var(--text); }
.srch-col-t .gko { margin-left: 0; font-size: var(--f-xs); }
.srch-col-t small { flex: 1 0 100%; font-size: var(--f-xs); color: var(--text-3); }
.srch-sellers.panel { display: flex; flex-direction: column; padding: 0 var(--s4); }
.srch-sel { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 56px; padding: var(--s2) 0; }
.srch-sel + .srch-sel { border-top: 1px solid var(--line); }
.srch-sel-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--f-md); font-weight: 700; color: var(--text); }
.srch-sel:hover .srch-sel-nm { color: var(--accent); }
.srch-sel-bd { flex: 0 0 auto; display: inline-flex; }
.srch-sel-m { flex: 0 1 auto; margin-left: auto; flex-wrap: nowrap; }
.srch-rt { display: inline-flex; align-items: baseline; gap: 3px; }
.srch-rt > svg { align-self: center; color: var(--gold); }
@media (max-width: 480px) {
  .srch-sel { flex-wrap: wrap; row-gap: 0; }
  .srch-sel-m { flex: 1 0 calc(100% - 44px); margin-left: 44px; }
  .srch-col { flex: 1 1 100%; }
}

/* ============================================================================
   MARKET
   ========================================================================== */
.market { display: grid; grid-template-columns: 244px 1fr; gap: var(--s6); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.fgroup { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > h4 { font-size: var(--f-sm); font-weight: 800; color: var(--text-2); margin-bottom: var(--s3); display: flex; align-items: center; justify-content: space-between; }
.fgroup .opts { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; }
.fopt {
  display: flex; align-items: center; gap: var(--s2); padding: 6px 8px; border-radius: var(--r-xs);
  font-size: var(--f-sm); color: var(--text-2); cursor: pointer; transition: background .13s var(--ease);
}
.fopt:hover { background: var(--surface-2); color: var(--text); }
.fopt.on { background: var(--accent-soft); color: var(--accent-fg); font-weight: 700; }
.fopt .c { margin-left: auto; font-size: var(--f-xs); color: var(--text-4); }
/* ── 걸개 옆 작은 그림 (see.tg 처럼 · 2026-11-13) ─────────────────
   컬렉션·모델 = 투명 그림 · 배경 = 색 견본 · 심볼 = 검은 모양에 색을 입힌다(--sym-filter).
   그림을 못 받으면 회색 빈칸으로 남는다(.is-broken). */
.fopt.has-th { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding-top: 6px; padding-bottom: 6px;
               /* ★ 목록 상자(.opts)는 세로 flex + 높이 제한이라, 줄어들게 두면 줄끼리 겹친다 */
               flex-shrink: 0; }
.fgroup .opts > .fopt { flex-shrink: 0; }
.fopt.has-th .fnm { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 1px; }
.fopt .fsub { font-size: var(--f-xs); color: var(--text-4); font-weight: 500; }
.fopt.on .fsub { color: inherit; opacity: .8; }
.fthw { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-sm); overflow: hidden;
        display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
.fthw .fth { width: 100%; height: 100%; object-fit: contain; display: block; }
.fthw .fth.is-broken { visibility: hidden; }
.fthw.fbd { border: 1px solid var(--line-2); }
.fthw.fbd .fth { object-fit: cover; }
.fthw.fsym { background: transparent; }
.fthw.fsym .fth { width: 28px; height: 28px; filter: var(--sym-filter); }
.fgroup .fq { margin-bottom: var(--s2); min-height: 40px; }
.fgroup .fq-none[hidden] { display: none; }
.fopt[hidden] { display: none; }
/* 모델 · 배경 · 심볼 여러 개 체크(2026-11-14) — 줄 맨 앞 체크란 · 마켓 체크란(.fmk input)과 같은 모양 */
.ftrait input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ftrait { min-height: 44px; }
.fgroup > h4 .fcnt { font-size: var(--f-xs); font-weight: 700; color: var(--accent-fg); }
.fgroup .fmulti { margin: 0 0 var(--s2); }
.filters-sheet .fgroup .opts { max-height: min(56vh, 520px); }
.fprice { display: flex; align-items: center; gap: 6px; }
.fprice .input { height: 36px; font-size: var(--f-sm); }
.fprice span { color: var(--text-4); }

.mbar { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.mbar .select, .mbar .input { width: auto; min-width: 150px; }
.mbar #mfilter { display: none; }   /* 필터는 옆에 펼쳐져 있으므로 PC 에서는 단추가 필요 없다 */
.mbar .cnt { font-size: var(--f-md); color: var(--text-2); font-weight: 600; }
.mbar .cnt b { color: var(--text); font-weight: 800; }
.mbar .spacer { flex: 1; }
.applied { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s4); }
.applied .chip { height: var(--pill-h-md); font-size: var(--f-xs); }

/* ============================================================================
   매물 상세
   ========================================================================== */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s7); align-items: start; }
.detail-img { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.detail-img .gimg { aspect-ratio: 1/1; }
.detail h1 { font-size: var(--f-3xl); letter-spacing: -.02em; }
.detail h1 .num { color: var(--text-3); font-weight: 700; }
.price-big { font-size: var(--f-4xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price-big .u { font-size: var(--f-xl); color: var(--text-3); margin-left: 6px; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px var(--s4); font-size: var(--f-md); }
.kv dt { color: var(--text-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; }

/* 관심·공유·신고 줄. 좁은 폰에서는 한 줄에 다 안 들어가므로 접히게 둔다 —
   안 접히면 이 줄이 상세 화면 전체를 밀어내 가로 스크롤이 생긴다(320px 실측). */
.actionbar { display: flex; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.actionbar > .btn { min-width: 0; }
.copybox {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s3); font-size: var(--f-sm); color: var(--text-2); line-height: 1.65;
  white-space: pre-wrap; margin-bottom: var(--s3);
}

/* ============================================================================
   판매자 프로필
   ========================================================================== */
.profile-hd { display: flex; gap: var(--s5); align-items: flex-start; padding-bottom: var(--s6); flex-wrap: wrap; }
.profile-hd .who { flex: 1; min-width: 240px; }
.profile-hd h1 { font-size: var(--f-2xl); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.ratebox { display: flex; align-items: center; gap: var(--s5); padding: var(--s4) var(--s5);
           background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); flex-wrap: wrap; }
.ratebox .big { font-size: var(--f-3xl); font-weight: 800; line-height: 1; }
.ratebox .brk { display: flex; gap: var(--s5); font-size: var(--f-xs); color: var(--text-3); }
.ratebox .brk b { display: block; font-size: var(--f-md); color: var(--text); }

.review { padding: var(--s4) 0; border-bottom: 1px solid var(--line); display: flex; gap: var(--s3); }
.review:last-child { border-bottom: 0; }
.review .bd { flex: 1; min-width: 0; }
.review .hd { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: 5px; }
.review .who { font-size: var(--f-md); font-weight: 700; }
.review .txt { font-size: var(--f-md); color: var(--text-2); line-height: 1.65; }
.review .sub { font-size: var(--f-xs); color: var(--text-4); margin-top: 5px; }

/* ============================================================================
   커뮤니티
   ========================================================================== */
.plist { border-top: 1px solid var(--line); }
.pitem { display: flex; gap: var(--s4); padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line); transition: background .13s var(--ease); }
.pitem:hover { background: var(--surface); }
.pitem .bd { flex: 1; min-width: 0; }
.pitem .cat { font-size: var(--f-xs); font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.pitem h3 { font-size: var(--f-base); margin: 3px 0 5px; }
.pitem .ex { font-size: var(--f-sm); color: var(--text-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pitem .meta { display: flex; align-items: center; gap: var(--s3); font-size: var(--f-xs); color: var(--text-4); margin-top: 8px; flex-wrap: wrap; }
.pitem .thumb { width: 82px; height: 82px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-2); }

.postbody { font-size: var(--f-base); line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.postbody img { border-radius: var(--r-md); margin: var(--s3) 0; display: block; }

.cmt { display: flex; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.cmt.reply { padding-left: var(--s7); }
.cmt .bd { flex: 1; min-width: 0; }
.cmt .who { font-size: var(--f-sm); font-weight: 700; }
.cmt .txt { font-size: var(--f-md); color: var(--text-2); line-height: 1.65; white-space: pre-wrap; margin-top: 3px; }
.cmt .acts { display: flex; gap: var(--s3); margin-top: 7px; font-size: var(--f-xs); color: var(--text-4); }
.cmt .acts button:hover { color: var(--text-2); }
.cmt .acts button.on { color: var(--accent); }

/* 글 안의 매물 미리보기 카드 */
.gpv { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3);
       background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); margin-top: var(--s3); max-width: 420px; }
.gpv .gimg { width: 48px; height: 48px; border-radius: var(--r-xs); aspect-ratio: auto; flex-shrink: 0; }
.gpv .t { font-size: var(--f-sm); font-weight: 700; }
.gpv .s { font-size: var(--f-xs); color: var(--text-3); }
.gpv .p { margin-left: auto; font-size: var(--f-md); font-weight: 800; white-space: nowrap; }

/* ── 알림 목록 ────────────────────────────────────────────────────── */
.nitem { display: flex; gap: var(--s3); padding: var(--s4) var(--s3); border-bottom: 1px solid var(--line); }
.nitem.unread { background: var(--accent-soft); }
.nitem .ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center;
             background: var(--surface-3); color: var(--text-2); flex-shrink: 0; }
.nitem .t { font-size: var(--f-md); font-weight: 700; }
.nitem .b { font-size: var(--f-sm); color: var(--text-3); margin-top: 2px; }
.nitem .w { font-size: var(--f-xs); color: var(--text-4); margin-top: 4px; }

/* ── 관리자 ───────────────────────────────────────────────────────── */
.adm { display: grid; grid-template-columns: 210px 1fr; gap: var(--s6); align-items: start; }
.admnav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.admnav button {
  display: flex; align-items: center; gap: var(--s2); padding: 9px 12px; border-radius: var(--r-sm);
  font-size: var(--f-md); font-weight: 700; color: var(--text-2); text-align: left; width: 100%;
}
.admnav button:hover { background: var(--surface-2); color: var(--text); }
.admnav button.on { background: var(--surface-3); color: var(--text); }
.admnav .n { margin-left: auto; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: var(--r-full);
             background: var(--danger); color: #fff; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--s3); margin-bottom: var(--s6); }
.dtable { font-size: var(--f-sm); }
.dtable th { text-align: left; font-size: var(--f-xs); color: var(--text-3); font-weight: 800;
             padding: 9px var(--s3); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.dtable td { padding: 11px var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:hover td { background: var(--surface-2); }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
/* ★ 표에 최소 폭을 준다.
   이것이 없으면 표가 상자보다 좁아지려고 칸을 한 글자까지 줄인다 — 폰에서
   회원 표 하나가 **5,405px** 이 되고 「운영자」가 운/영/자 세 줄로 쌓였다.
   한글만의 일이 아니다: 'Nocturne' 도 N/o/ct/u/r/n/e 로 쌓였다(재현했다).
   사장님이 밖에서 폰으로 「가입 승인」을 보실 때 회원 한 명 확인하는 데
   화면을 다섯 번 넘겨야 했다.
   .tblwrap 이 이미 overflow-x:auto 라 표가 옆으로 밀릴 뿐, 페이지에는
   가로 스크롤이 생기지 않는다(실측으로 확인). */
.tblwrap > table { min-width: 640px; }
.tblwrap > table td, .tblwrap > table th { overflow-wrap: normal; word-break: keep-all; }

/* ============================================================================
   반응형 — 모바일이 PC보다 중요하다
   ========================================================================== */
/* 헤더가 좁아지면 검색창부터 접는다 — 메뉴 글자가 두 줄로 꺾이는 것을 막는다 */
@media (max-width: 1180px) { .hsearch { display: none; } }

/* 아주 좁은 폰(≤430px) — 머리말에 「매물등록」까지 넣으면 가로로 넘친다.
   아래 고정 메뉴에 「등록」이 이미 크게 있으므로 머리말에서는 뺀다.
   언어 단추는 남긴다 — 영어권 손님이 첫 화면에서 바로 찾아야 하기 때문이다. */
/* 아래 고정 메뉴(.mnav)가 나오는 폭에서는 머리말의 「매물등록」을 감춘다.
   같은 곳으로 가는 같은 단추가 위·아래에 둘 보이던 것을 없앤다.
   ★ 기준을 .mnav 와 똑같이 980px 로 맞춘다 — 예전에는 CSS 430 · JS 860 ·
     메뉴 980 이 제각각이라 431~980 사이에서 단추가 겹쳤다. */
/* 「관리자」 단추는 폰에서도 머리말에 둔다 — 아래 메뉴에는 관리자 길이 없다 */
@media (max-width: 980px) { #admBtn { height: 34px; padding: 0 10px; font-size: var(--f-sm); } }
@media (max-width: 980px) {
  #sellBtn { display: none; }
  .hdr-r { gap: 6px; }
  .hdr-in { gap: 6px; }
  .hdr-in > .brand { margin-right: var(--s3); }
}

@media (max-width: 1100px) {
  /* ★ 1fr 이 아니라 minmax(0, 1fr) 이어야 한다. `1fr` 은 `minmax(auto, 1fr)` 과
     같아서 칸의 최소폭이 **안에 든 내용의 min-content** 가 된다. 그래서 오른쪽
     칸의 「이 판매자의 다른 매물」 줄이 접히지 못하면 그 폭이 칸 전체의 최소폭이
     되어 화면을 밖으로 밀어냈다 — 320px 에서 9~23px 가 잘려 나갔다(실측).
     body 에 overflow-x:hidden 이 걸려 있어 밀어 볼 수도 없이 그냥 베인다.
     375px 에서는 아슬아슬하게 안 걸린다 — 375만 보면 못 찾는 사고다. */
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-img { max-width: 460px; }
  .ggrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ggrid-4c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .market { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mbar #mfilter { display: inline-flex; }
  .adm { grid-template-columns: 1fr; }
  .admnav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .admnav button { white-space: nowrap; width: auto; }
}

/* 위쪽 메뉴(7칸)가 헤더 안에 다 못 들어가는 폭부터는 아래쪽 메뉴로 바꾼다.
   860 에서 바꿨더니 861~950 사이에서 「매물등록」 단추가 화면 밖으로 밀려
   가로 스크롤이 생겼다(실측 76px). 그래서 기준을 980 으로 올렸다. */
@media (max-width: 980px) {
  .gnb { display: none; }
  .mnav { display: flex; }
  .page { padding-bottom: calc(var(--mobile-nav-h) + var(--s8)); }
  .ftr { margin-bottom: var(--mobile-nav-h); }
  /* 로그인·가입이 막힌 까닭(#authBlock)을 띄울 때 화면을 「보이게」 밀어 준다(pages-user.js authBlocked). 그런데 화면의 맨 아래
     60px 은 붙어 있는 아래 메뉴가 덮고 있다 — 그만큼을 빼고 밀어야 안내와 단추가 메뉴 밑에 깔리지 않는다(2026-11-14 교차검증 2차). */
  #authBlock, .authcard .authgo { scroll-margin-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 16px); }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .wrap { padding: 0 var(--s4); }
  .page { padding: var(--s5) 0 calc(var(--mobile-nav-h) + var(--s8)); }

  .hero { padding: var(--s7) 0 var(--s6); }
  .hero h1 { font-size: var(--f-2xl); }
  .hero .lead { font-size: var(--f-md); margin-bottom: var(--s5); }
  .bigsearch input { height: 50px; font-size: var(--f-base); padding: 0 16px 0 44px; }
  .bigsearch .go { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin: var(--s6) 0 var(--s7); }
  .stat { padding: var(--s3) var(--s4); }
  .stat b { font-size: var(--f-xl); }

  /* 태블릿 폭에서는 아직 세 칸이 들어간다 — 두 칸으로 줄이면 카드가 너무 커진다 */
  .ggrid, .ggrid-4c { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .grail { grid-auto-columns: 34%; gap: var(--s3); }
  .gcard-bd { padding: 10px 11px 11px; gap: 6px; }
  .gcard-nm { font-size: var(--f-sm); }
  .gprice { font-size: var(--f-base); }
  .sec { margin-bottom: var(--s7); }
  .sec-hd h2 { font-size: var(--f-lg); }

  .detail h1 { font-size: var(--f-xl); }
  .price-big { font-size: var(--f-2xl); }
  .detail-img { max-width: 100%; }
  .profile-hd { gap: var(--s4); }

  /* 모달은 아래에서 올라오는 시트로 */
  .ovl { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; max-height: 88vh; max-height: 88dvh;
           border-radius: var(--r-xl) var(--r-xl) 0 0;
           border-left: 0; border-right: 0; border-bottom: 0; animation: slideup .22s var(--ease);
           padding-bottom: env(safe-area-inset-bottom); }
  .modal-ft { position: sticky; bottom: 0; background: var(--surface); }

  .pitem .thumb { width: 64px; height: 64px; }
}

/* 폰 — 두 칸. 판매자 카드는 정보가 많아 한 칸으로 편다. */
@media (max-width: 620px) {
  .ggrid, .ggrid-4c { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* ★ `1fr` 이 아니라 minmax(0, 1fr) — `1fr` 은 minmax(auto, 1fr) 이라 칸이 카드의 최소 폭(한 줄짜리 닉네임 전부)까지 늘어난다.
       320px 에서 트로피 판매자의 닉네임이 한글 15자면 칸이 314.6px 이 되어 카드가 화면 밖으로 나갔다(scrollWidth 331 · 375px 은 20자).
       이름 줄의 말줄임도 그래서 한 번도 걸리지 않았다(2026-11-14 실측 · 위 .detail 과 같은 사고). */
  .ggrid-4 { grid-template-columns: minmax(0, 1fr); }
  .grail { grid-auto-columns: 46%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .gtraits { display: none; }   /* 아주 좁은 화면에서는 특성 칩을 접는다 */
}

/* 터치 기기: 손가락이 닿는 최소 크기 보장 */
@media (hover: none) {
  .btn-sm { height: 36px; }
  /* ★ 예전에는 padding: 4px 0 이라 누르는 자리가 26.6px 뿐이었고, 바로 옆
     12px 자리에 **남의 댓글을 신고**하는 단추가 서 있었다(실측 — 「답글」
     오른쪽 끝 130.9px, 「신고」 왼쪽 142.9px). 잘못 누르면 되돌리기 어렵다.
     CLAUDE.md 「손가락 자리」의 44px 기준을 여기에도 적용한다. */
  .cmt .acts { gap: var(--s2); margin-top: var(--s1); }
  .cmt .acts button {
    min-height: 44px; min-width: 44px; padding: 0 var(--s2);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  }
  /* 찜 하트(.fav)는 늘 .gcard 안에 있어 여기서 잡으면 밀린다 —
     「ui.js 에서 온 것」 구역의 .gcard .fav 가 그 몫을 한다. */
}

/* ============================================================================
   텔레그램 선물 주소로 한 번에 채우기 (매물 등록 맨 위)
   ========================================================================== */
.tgbox {
  border-color: rgba(42, 160, 218, .32);
  background: linear-gradient(180deg, rgba(42, 160, 218, .07), transparent 62%), var(--surface);
}
.tgbox .tgrow { align-items: stretch; }
/* ★ 좁은 폰에서는 이 줄이 세로로 쌓이는데(아래 620px 규칙), 그때
   align-items:stretch 가 세로 방향으로 걸려 칸 높이가 20px 로 눌렸다 —
   「텔레그램 선물 주소」 칸이 사실상 사라져 매물을 올릴 수 없었다(재현했다).
   높이를 못박아 둔다. */
.tgbox .tgrow .input { min-width: 200px; height: 42px; flex: 1 1 auto; }
.tgbox .btn-tg { flex-shrink: 0; }
.tgfound { align-items: flex-start; }
.tgtraits { display: flex; gap: 5px; flex-wrap: wrap; margin: 7px 0 4px; }
.tgtraits .gtrait { font-size: var(--f-xs); }

/* 매물 상세 — 원본에서 가져온 값 */
.srcline {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  font-size: var(--f-sm); color: var(--text-3);
}
.srcline a { color: var(--tg-fg); font-weight: 700; }
.srcline a:hover { text-decoration: underline; }
/* 2026-11-15 삼자사기 점검 — 원본 미확인 · 오래된 조회 · 소유자 표기 변경 · 같은 선물의 다른 매물. 사실을 적는 조용한 줄이다(경고색을 쓰지 않는다) */
.srcline .src-old { color: var(--text-2); font-weight: 700; }
.srcline + .srcline, .ld-owner + .srcline { margin-top: var(--s2); }
.ld-owner .ld-owner-moved, .ld-owner .ld-owner-old { display: inline-flex; align-items: flex-start; gap: var(--s1); color: var(--text-2); }
.ld-samegift span, .src-manual span { min-width: 0; }
.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--f-xs); color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 2px 7px;
  overflow-wrap: anywhere;
}
.kv dd .rar { font-size: var(--f-xs); color: var(--text-3); font-weight: 700; margin-left: 5px; }

@media (max-width: 620px) {
  .tgbox .tgrow { flex-direction: column; }
  .tgbox .tgrow .btn { width: 100%; }
}

/* 매물 등록 — Gift 이미지는 보여주기만 한다 (직접 올리기 없음) */
.imgrow { align-items: center; }
.imgrow #imgNote b { font-size: var(--f-md); }

/* 월 정액 회원 배지 — '활동 중인 유료 회원'이라는 뜻일 뿐,
   안전이나 인증과는 무관하다. 그래서 인증(파랑)과 다른 색을 쓴다. */
.badge-premium {
  color: var(--purple); background: rgba(192, 139, 232, .13); border-color: rgba(192, 139, 232, .34);
}

/* 판매자 상태 칩 — 승인/활동 여부를 배지와 섞지 않고 따로 보여 준다 */
.statechip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700;
  color: var(--text-3); background: var(--surface-3); border: 1px solid var(--line);
}
.statechip.ok   { color: var(--ok);   background: var(--ok-soft);   border-color: transparent; }
.statechip.wait { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.statechip.off  { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.badge-off { color: var(--text-3); background: var(--surface-3); border-color: var(--line); }

/* 두 축 풀이 — 손님이 배지를 오해하지 않도록 뜻을 그 자리에서 읽게 한다
   (2026-11-16 운영팀 인증 감춤으로 세 칸 → 두 칸 · 활동등급 · 멤버십) */
.trustwhy { display: grid; }
.trustwhy .twgrid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trustwhy .tw { display: grid; gap: 6px; align-content: start; }
.trustwhy .tw p { margin: 0; line-height: 1.55; }
@media (max-width: 720px) { .trustwhy .twgrid { grid-template-columns: 1fr; } }

/* 프리미엄 매물 표시 — 눈에 띄되 튀지 않게. 광고가 목록을 압도하면
   손님이 사이트를 떠난다(초기에는 사용자 확보가 수익보다 앞선다). */
.gcard .pflag {
  /* 자리는 「카드 그림 아래 한 줄」(.gfoot)이 정한다 — 왼쪽 아래. 좁으면 로고·하트 윗줄로 올라간다. */
  padding: 2px 7px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 800; letter-spacing: .02em;
  color: #C08BE8; background: rgba(20, 16, 28, .78);
  border: 1px solid rgba(192, 139, 232, .38); backdrop-filter: blur(4px);
}

/* 상품 설정 — 세 상품을 나란히 놓아 값을 견주기 쉽게 한다 */
.prodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* 언어 바꾸기 단추 — 누르면 갈 언어를 적어 둔다(EN / KO).
   아이콘 단추들과 같은 높이라 줄이 흐트러지지 않는다. */
.langbtn {
  height: 34px; min-width: 38px; padding: 0 9px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); font-size: var(--f-xs); font-weight: 800; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: .15s var(--ease);
}
.langbtn { gap: 5px; }
.langbtn svg { flex-shrink: 0; opacity: .8; }
.langbtn:hover { color: var(--text); border-color: var(--line-3); }
.langbtn:hover svg { opacity: 1; }
@media (max-width: 1180px) { .langbtn { min-width: 34px; padding: 0 7px; font-size: 11px; } }

/* ── 관리자 통계 ───────────────────────────────────────────────────
   그래프는 바깥 라이브러리 없이 SVG 로 직접 그린다(이 프로젝트는 외부
   의존성이 0개다 — 그것을 깨지 않는다). 막대 색은 인라인 style 이 아니라
   클래스로 준다: CSP style-src 'self' 가 style 속성을 막고 있고,
   막아 두는 편이 안전하다. */
.spgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
          gap: var(--s3); margin-bottom: var(--s6); }
.spcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); }
.sphd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sphd span { font-size: var(--f-xs); color: var(--text-3); font-weight: 800; letter-spacing: .04em; }
.sphd b { font-size: var(--f-xl); font-weight: 800; letter-spacing: -.02em; }   /* 카드 색을 물려받는다 */

/* 막대는 viewBox 안에서 가로로 늘어난다(preserveAspectRatio="none").
   높이는 늘 56px 이라 날짜가 늘어도 그래프가 두꺼워지지 않는다. */
.spark { display: block; width: 100%; height: 56px; }
.spark rect.v { fill: currentColor; }
.spark rect.z { fill: var(--line-2); }      /* 아무 일도 없던 날 — 바닥에 얇게 남긴다 */
.spft { display: flex; justify-content: space-between; gap: var(--s2); white-space: nowrap; margin-top: 6px; font-size: 11px; color: var(--text-4); }

/* 지표마다 다른 색. 뜻이 있는 색(--ok 등)을 그대로 빌려 쓴다 */
.sp-a { color: var(--accent); }
.sp-b { color: var(--tier-active); }
.sp-c { color: var(--ok); }
.sp-d { color: var(--gold); }
.sp-e { color: var(--text-2); }
/* 연락 — 텔레그램 색을 그대로 쓴다. 무슨 숫자인지 색만 봐도 알게 한다.
   (배지 .badge-tg 와 같은 색이다) */
.sp-f { color: var(--tg-fg); }

/* 손님의 움직임 — 인기 검색어 · 언어 비율 */
.langbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.langbar i { display: block; height: 100%; }
.langbar .lk { background: var(--accent); }
.langbar .le { background: var(--tg-fg); }
.langlg { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: 8px; font-size: var(--f-sm); color: var(--text-2); }
.langlg b { color: var(--text); }
.langlg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: baseline; }

.statcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
            gap: var(--s4); margin-bottom: var(--s5); }
.kvrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
         padding: 7px 0; border-bottom: 1px solid var(--line); }
.kvrow:last-of-type { border-bottom: 0; }
.kvrow span { font-size: var(--f-sm); color: var(--text-2); }
.kvrow b { font-weight: 800; }
.kvrow b.hot { color: var(--warn); }        /* 사람이 기다리고 있는 칸 */

/* 관리자 화면의 작은 제목 — 지금까지 margin 이 없어 바로 위 칸에 붙어 있었다.
   통계 화면은 이 제목이 다섯 번 나오므로 칸을 나누는 몫을 제대로 준다. */
.admh { margin: var(--s6) 0 var(--s3); font-size: var(--f-lg); color: var(--text); }
.admh:first-child { margin-top: 0; }

/* 관리자 본문은 grid 칸(1fr)이라 기본 min-width 가 auto 다. 안에 넓은 표가
   하나만 있어도 칸 자체가 표만큼 늘어나 화면 전체에 가로 스크롤이 생긴다 —
   폰에서 실제로 그랬다(375px 에서 문서 폭이 506px 이 됐다).
   0 으로 눌러 두면 .tblwrap 이 제 몫을 한다: 표는 제 상자 안에서만 옆으로 민다. */
.adm #admbody { min-width: 0; }

/* 배지 세 개(등급·인증·멤버십)가 한 줄에 다 못 들어가면 접는다.
   한 칸에 합치지는 않는다 — 뜻이 다른 표시라 자리를 따로 둔다. */
.badgecell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }

/* 첫 화면 숫자 — 오늘 늘어난 만큼을 작게 덧붙인다.
   "지금도 매물이 들어오고 있다" 는 것을 숫자 하나로 보여 주는 자리다. */
.stat { position: relative; }
.stat .stat-today {
  display: block; margin-top: 2px;
  font-size: var(--f-xs); font-style: normal; font-weight: 800;
  color: var(--ok);
}

/* hidden 을 단 것은 무조건 숨는다.
   .btn 같은 클래스가 display 를 정해 두면 [hidden] 이 밀려서, 숨겼다고 생각한
   단추가 빈 상자로 남는다(실시간 줄의 「새 매물 보기」가 그랬다). */
[hidden] { display: none !important; }

/* ── 폰에서 아래에 붙는 연락 막대 ─────────────────────────────────────
   이 사이트에서 손님이 해야 할 일은 하나다 — 판매자에게 연락하는 것.
   스크롤을 내려 그 버튼이 화면 밖으로 나가면 여기가 대신 받아 준다.
   버튼이 보이는 동안에는 감춘다(같은 것이 두 개로 보이지 않게). */
.stickycta {
  position: fixed; left: 0; right: 0; z-index: 90;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  padding: var(--s2) var(--s4) var(--s3);
  background: linear-gradient(180deg, transparent 0%, var(--bg) 34%);
  animation: ctaUp .24s var(--ease-out);
}
@keyframes ctaUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stickycta .sc-in {
  display: flex; align-items: center; gap: var(--s3);
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s2) var(--s2) var(--s2) var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--surface); box-shadow: var(--sh-3);
}
.stickycta .sc-info { display: grid; min-width: 0; }
.stickycta .sc-info b { font-size: var(--f-lg); line-height: 1.2; }
/* ★ 이름 줄만 「…」로 줄인다. 예전에는 그냥 span 이라 **가격 덩이**
   (.tonprice 도 span 이다)까지 잡혀서, 좁은 폰에서 값이 잘리고 단위 TON 이
   통째로 안 보였다 — 잘렸다는 표시도 없이. 가장 중요한 단추 옆 숫자다. */
.stickycta .sc-info > span:not(.tonprice) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--f-xs); }
.stickycta .btn { flex-shrink: 0; height: 42px; padding: 0 var(--s5); border-radius: var(--r-full); }
/* PC 에서는 오른쪽 칸에 연락 버튼이 늘 보이므로 필요 없다 */
@media (min-width: 861px) { .stickycta { display: none; } }
/* 막대가 있는 화면(매물 상세 — pages-market.js 가 html 에 has-stickycta 를 건다)에서는 바닥글이 막대 높이(80px) + 틈만큼
   자리를 더 둔다. 안 두면 맨 아래까지 내려도 바닥글의 「신고하기」가 막대 밑에 깔려 눌리지 않는다(2026-11-14 교차검증).
   AI 단추용 자리(html.has-aifab .ftr · 76px)와 **더하지 않는다** — 둘 다 걸리면 이쪽(더 큰 값)이 이긴다. */
@media (max-width: 860px) {
  html.has-stickycta .ftr, html.has-stickycta.has-aifab .ftr { padding-bottom: calc(var(--s8) + 84px); }
}


/* ════════════════════════════════════════════════════════════════════════
   화면 품질 향상 (2026-08-24)

   각 화면을 맡아 다듬은 결과를 여기 모았다. 앞부분의 기본 규칙을 덮어쓰는
   것이 아니라 **덧붙이는** 방식이라, 위쪽을 지워도 사이트는 그대로 돈다.
   움직임의 바탕(.reveal · .is-fresh · .livedot 등)은 css/motion.css 에 있다.
   ════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════
   pages-user.js 에서 온 것
   ══════════════════════════════════════════════════════════════════ */
/* ============================================================================
   회원 화면 — 판매자 프로필 · 내 정보 · SELLERS · RANKING · 알림 · 검색
   (pages-user.js 전용. 여기 선택자는 이 화면들 밖으로 나가지 않는다)
   ========================================================================== */

/* ── 로그인 · 가입 · 승인 대기 ─────────────────────────────────────
   폭은 값이 바뀌지 않는다. JS 로 주던 것을 여기로 옮겼다. */
.authbox { max-width: 440px; margin: var(--s8) auto; }

.pendico { line-height: 0; }
.pendico.is-info { color: var(--accent); }
.pendico.is-warn { color: var(--warn); }

.pendsteps .pstep { align-items: flex-start; }
.pendsteps .stepno {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; line-height: 0;
  font-size: var(--f-xs); font-weight: 800;
  background: var(--surface-3); color: var(--text-3);
}
.pendsteps .pstep.done .stepno { background: var(--ok-soft); color: var(--ok); }
.pendsteps .pstep.now  .stepno { background: var(--accent-soft); color: var(--accent); }
/* 기다리는 동안 한 곳만 살아 있게 한다 — 이 화면에서 스스로 움직이는 것은 이것 하나뿐 */
.pendsteps .livedot, .pendsteps .livedot::after { background: var(--accent); }

/* ── 유료 상품 칸 ──────────────────────────────────────────────────
   간격·아래 여백은 여기 한 곳에서만 정한다(위쪽 규칙은 짜임새만 정한다). */
.prodgrid { gap: var(--s4); margin-bottom: var(--s5); }
.prodcard .prodprice { color: var(--text); font-weight: 800; }

/* ── 판매자 프로필 ─────────────────────────────────────────────────
   이 사이트에서 가장 중요한 판단 화면이다. 눈이 가야 할 차례는
   평점 → 거래 수 → 배지의 뜻 → 연락 이다. */
.sellerside, .mystats { min-width: 300px; }

/* 넓은 화면에서 오른쪽 숫자 칸이 혼자 아래로 길어져, 왼쪽 이름·연락 칸 밑이
   200px 넘게 비어 보였다(사장님 지적, 2026-09-12 · 판매자 236px · 내정보 183px).
   칸을 좁고 길게 세워 두지 말고 **두 장을 나란히 눕혀** 왼쪽과 아래를 맞춘다.
   ★ 좁은 화면에서는 건드리지 않는다 — 거기서는 이미 위아래로 쌓여 빈 곳이 없다. */
@media (min-width: 1024px) {
  .profile-hd {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(0, 620px);
    align-items: start;
  }
  /* 위쪽 flex 규칙의 min-width 는 grid 칸 안에서는 넘침의 원인이 된다 */
  .profile-hd .who { min-width: 0; }
  /* 2026-11-16 — 평점 상자는 좁게(200~240) · 거래 숫자 판이 나머지. 반반이면 평점 상자가 55% 비어 보였다 */
  .sellerside, .mystats {
    display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: var(--s4); align-items: stretch; min-width: 0;
  }
  /* 「상대가 아직 확인 안 한 거래」 안내는 두 칸에 걸쳐 눕힌다 */
  .sellerside > .note, .mystats > .note { grid-column: 1 / -1; }
  /* 평점 상자는 옆 칸(거래 숫자)만큼 키가 커진다 — 안을 가운데로 모은다.
     ★ 내정보도 같은 상자를 쓴다. 예전에는 내정보만 작은 네모 두 칸이라
       넓은 화면에서 숫자 하나만 든 302x261 빈 상자가 됐다. */
  /* ★ 2026-11-16 — 아래에 규모 한 줄(.rt-foot)이 생겨, 위 덩어리는 위에 붙인다(가운데에 떠 있지 않게) */
  .sellerside .ratebox.trustbox > .stack,
  .mystats .ratebox.trustbox > .stack { justify-content: flex-start; }
}

.ratebox.trustbox { align-items: stretch; }
.trustbox .rt-top { display: flex; align-items: baseline; gap: var(--s2); }
.trustbox .big { font-size: var(--f-4xl); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.trustbox .rt-of { font-size: var(--f-sm); font-weight: 700; color: var(--text-4); }
/* 후기가 하나도 없으면 "0.0" 이 나쁜 평가처럼 읽힌다. 숫자는 그대로 두고 힘만 뺀다. */
.trustbox.is-none .big { color: var(--text-3); }

/* 4.8 이 얼마나 높은지는 숫자만으로 안 읽힌다. 길이로 한 번 더 보여 준다. */
.trustbox .rbar {
  display: block; height: 6px; border-radius: var(--r-full);
  background: var(--surface-3); overflow: hidden;
}
.trustbox .rbar > i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: var(--gold);
  transition: width var(--t-slow) var(--ease-out);
}
.trustbox.is-none .rbar > i { background: var(--line-3); }

/* ── 이 판매자를 판단하는 두 가지 (2026-11-16 전에는 세 가지) ──────────
   여기 적힌 뜻이 흐려지면 손님은 "돈 낸 사람 = 안전한 사람" 으로 읽는다.
   여백은 여기 한 곳에서만 정한다(위쪽 규칙은 짜임새만 정한다). */
.trustwhy { padding: var(--s5); gap: var(--s4); margin-bottom: var(--s5); }
.trustwhy .twgrid { gap: var(--s5); }
.trustwhy .tw-hd {
  /* 넓은 화면에서 space-between 으로 두면 제목과 설명이 1,240px 양 끝으로
     갈라져 **서로 상관없는 두 개**처럼 읽혔다. 한 문장처럼 붙여 둔다. */
  display: flex; align-items: baseline; justify-content: flex-start;
  gap: var(--s2) var(--s4); flex-wrap: wrap;
}
.trustwhy .tw { padding-left: var(--s4); border-left: 2px solid var(--line); }
.trustwhy .tw-top { flex-wrap: wrap; }
.trustwhy .twno {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  background: var(--surface-3); color: var(--text-3);
}
/* "안전을 보증하지 않습니다" — 이 문장만은 절대 흐려지면 안 된다 */
.trustwhy .tw-caution { border-left-color: var(--warn); }
.trustwhy .tw-caution p b { color: var(--warn); font-weight: 800; }
@media (max-width: 720px) { .trustwhy .twgrid { gap: var(--s4); } }

/* ── 항목별 평점 (응답속도 · 친절도 · 거래 신뢰도) ────────────────── */
.rbrk { margin-bottom: var(--s4); }
.rbrk .brkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.rbrk .brki { display: grid; gap: 5px; align-content: start; }
.rbrk .brki .lb { font-size: var(--f-xs); color: var(--text-3); }
.rbrk .brki b { font-size: var(--f-lg); font-weight: 800; line-height: 1.1; }
.rbrk .brki .bar {
  display: block; height: 5px; border-radius: var(--r-full);
  background: var(--surface-3); overflow: hidden;
}
.rbrk .brki .bar > i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}

/* ── 최근 활동 목록 ───────────────────────────────────────────────── */
.actrow .actic {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-sm);
  display: grid; place-items: center; line-height: 0;
  color: var(--text-3); background: var(--surface-3);
  transition: color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
@media (hover: hover) {
  .actrow:hover .actic { color: var(--accent); background: var(--accent-soft); }
}

/* ── 탭 — 지금 어디 있는지 ────────────────────────────────────────
   내 정보 탭이 일곱 개가 되었다. 밑줄만으로는 고른 칸이 잘 안 보인다. */
.sellertabs { margin-top: var(--s5); }
.metabs button.on, .sellertabs button.on {
  font-weight: 800;
  background: linear-gradient(180deg, transparent 45%, var(--accent-soft) 100%);
  border-radius: var(--r-xs) var(--r-xs) 0 0;
}
.metabs button.on .cnt, .sellertabs button.on .cnt { color: var(--accent); font-weight: 800; }

/* ── 거래 확인 — 가볍게 눌리면 안 되는 결정 ───────────────────────
   목록처럼 흘려보내지 않는다. 한 건마다 판을 깔고, 단추도 크게 둔다.
   잘못 누르면 남의 평판이 걸린 일이다. */
.cfhd { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.cfhd .cfhd-n {
  min-width: 46px; height: 46px; padding: 0 10px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: var(--r-md);
  font-size: var(--f-xl); font-weight: 800;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.cflist { display: grid; gap: var(--s3); margin-top: var(--s4); }
.cfcard { display: grid; gap: var(--s3); }
.cfwho { display: flex; align-items: center; gap: var(--s3); }
.cfwho .who { font-size: var(--f-md); font-weight: 700; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.cfwho .sub { font-size: var(--f-xs); color: var(--text-4); margin-top: 2px; }
.cfgift {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.cfgift .cf-nm { font-size: var(--f-md); font-weight: 700; }
.cfgift .cf-nm .num { color: var(--text-3); font-weight: 700; }
.cfgift .cf-ton { font-size: var(--f-lg); font-weight: 800; }
.cfgift .cf-ton .u { font-size: var(--f-xs); color: var(--text-3); margin-left: 4px; font-weight: 700; }
.cfact { display: flex; gap: var(--s2); flex-wrap: wrap; }
.cfact .btn { height: 44px; flex: 1 1 140px; font-size: var(--f-md); font-weight: 700; }
.cfact .cf-yes { gap: 6px; }
/* 「아니에요」는 취소가 아니라 신고에 가깝다. 조용하되 만만해 보이지는 않게. */
.cfact .cf-no { border-color: var(--line-3); color: var(--text-2); }
.cfact .cf-no:hover { border-color: var(--danger); color: var(--danger-fg); background: var(--danger-soft); }

/* ── 순위 — 4위부터의 숫자 목록 ─────────────────────────────────────
   1 · 2 · 3위는 시상대(.rk-pod)에 트로피 그림으로 선다 — 맨 아래 「랭킹 · 트로피」 구역(2026-11-14).
   여기는 숫자로 세는 줄의 모양만 정한다. 줄 하나가 통째로 판매자 프로필로 가는 링크다. */
.rankboard .rankrow {
  align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s2);
  border-radius: var(--r-sm);
}
@media (hover: hover) { .rankboard .rankrow:hover { background: var(--surface-2); } }
.rankno {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  font-size: var(--f-md); font-weight: 800; color: var(--text-3);
  background: var(--surface-3);
  font-variant-numeric: tabular-nums;
}
.rankboard .rankval { flex-shrink: 0; font-size: var(--f-md); color: var(--text-2); }

/* ── 알림 ─────────────────────────────────────────────────────────
   안 읽은 것과 읽은 것이 한눈에 갈라져야 한다. */
.notiwrap { max-width: 760px; margin: 0 auto; }
/* 알림 화면만 제목 아래 여백을 혼자 좁게(16px) 쓰고 있었다.
   다른 화면은 전부 .pagehd 의 20px 라 그 한 장만 위로 붙어 보인다. */

.notiwrap .unreadchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: var(--f-xs); font-weight: 800;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.notiwrap .nsk { height: 66px; border-radius: var(--r-md); margin-bottom: var(--s2); }

#nlist .nitem {
  position: relative; align-items: flex-start;
  padding: var(--s4); margin-bottom: var(--s2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
#nlist .nitem.unread { background: var(--accent-soft); border-color: var(--accent-line); }
#nlist .nitem.unread .t { color: var(--text); font-weight: 800; }
#nlist .nitem.unread .ic { color: var(--accent); }
@media (hover: hover) { #nlist .nitem:hover { border-color: var(--line-3); background: var(--surface-2); } }
@media (hover: hover) { #nlist .nitem.unread:hover { border-color: var(--accent); background: var(--accent-soft); } }

/* 안 읽음 점 — 깜빡이지 않는다. 세어 봐야 하는 표시지 재촉하는 표시가 아니다. */
.ndot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
#nlist .nitem .ndot { margin-top: 6px; }

/* ── SELLERS ──────────────────────────────────────────────────── */
.sellersbar .sq { max-width: 260px; }

/* ── 검색 결과 — 어느 칸에 몇 건인지 먼저 보이게 ─────────────────── */
.sec-hd .cnt {
  font-size: var(--f-xs); font-weight: 800; color: var(--text-3);
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line);
}

/* ── 후기 쓰기 — 별을 눌렀는지 글자로도 알려 준다 ────────────────── */
.pk-hd { margin-bottom: 6px; }
.pkval { font-size: var(--f-sm); font-weight: 800; color: var(--gold); min-height: 20px; }
.rate-pick button { transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.rate-pick button:active { transform: scale(.9); }

/* ── 폰 (375px 에서 가로로 넘치지 않게) ──────────────────────────── */
@media (max-width: 640px) {
  .trustbox .big { font-size: var(--f-3xl); }
  .sellerside, .mystats { min-width: 0; width: 100%; }
  .rbrk .brkgrid { gap: var(--s3); }
  .cfact .btn { flex: 1 1 100%; }
  .sellersbar .sq { max-width: none; flex: 1 1 100%; }
}


/* ══════════════════════════════════════════════════════════════════
   pages-admin.js 에서 온 것
   ══════════════════════════════════════════════════════════════════ */
/* ============================================================================
   관리자 화면 (public/js/pages-admin.js 전용)

   여기는 손님이 아니라 운영자가 매일 여는 화면이다. 화려할 이유가 없고,
   **한눈에 읽히는 것**이 전부다. 그래서 움직임은 세 가지 뜻으로만 쓴다 —
     · 지금 사람이 기다리고 있다 (승인·신고)
     · 방금 값이 바뀌었다 (1분마다 스스로 다시 읽는다)
     · 이 줄과 저 줄은 다른 것이다 (실제 결제 ≠ 운영자 처리)
   ========================================================================== */

/* ── 기다리는 동안 ──────────────────────────────────────────────────
   관리자 화면에 뜨는 것은 선물 카드가 아니라 표다. 표 모양으로 기다린다. */
.admsk { display: flex; flex-direction: column; gap: var(--s2); }
.admsk-bar { height: 44px; border-radius: var(--r-md); }
.admsk-row { height: 38px; border-radius: var(--r-sm); }

/* ── 지금 처리할 일 ─────────────────────────────────────────────────
   대시보드에서 눈이 가장 먼저 닿아야 하는 곳. 0 인 줄은 그리지 않으므로
   여기에 무언가 보인다는 것 자체가 "손볼 게 있다"는 뜻이다. */
.admh-top { margin-top: 0; }
.admq {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--s3); margin-bottom: var(--s6);
}
.qitem {
  position: relative;                     /* .is-fresh 의 테두리가 여기 걸린다 */
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: inset 3px 0 0 var(--warn);  /* 기다리는 일이라는 표시 */
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.qitem .qi { flex-shrink: 0; line-height: 0; color: var(--warn); }
.qitem .ql { font-size: var(--f-md); font-weight: 700; color: var(--text); }
.qitem .qn {
  margin-left: auto; font-size: var(--f-2xl); font-weight: 800;
  letter-spacing: -.02em; color: var(--warn);
}
.qitem .qgo {
  flex-shrink: 0; line-height: 0; color: var(--text-4);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
@media (hover: hover) {
  .qitem:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--line-3); }
  .qitem:hover .qgo { transform: translateX(3px); color: var(--text-2); }
}
.qitem:active { transform: translateY(0) scale(.995); }

/* 아무것도 기다리지 않을 때 — 조용히 한 줄. 빈 칸을 늘어놓지 않는다. */
.qclear {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: inset 3px 0 0 var(--ok);
}
.qclear .qi.ok { flex-shrink: 0; line-height: 0; margin-top: 2px; color: var(--ok); }
.qclear b { font-size: var(--f-base); }

/* ── 오늘 ───────────────────────────────────────────────────────────
   이 화면에서 저절로 움직이는 것은 이 점 하나뿐이다. 1분마다 실제로 다시
   읽어 오기 때문에 붙일 자격이 있다 — 안 움직이는 숫자 옆에는 붙이지 않는다. */
.admh-live { display: flex; align-items: center; gap: var(--s2); }
.admh-when { margin-left: auto; font-size: var(--f-xs); font-weight: 600; color: var(--text-4); }
.stat.st-now { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border-color: var(--line-2); }
/* 오늘 칸은 두 개뿐이다. 화면 폭까지 늘리면 숫자 사이가 허전해 보인다. */
.adm-today { grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); max-width: 520px; }

/* ── 표 ─────────────────────────────────────────────────────────────
   줄이 많아지면 눈이 옆줄로 미끄러진다. 한 줄 걸러 바탕을 아주 조금 낮추고,
   숫자는 오른쪽으로 맞춰 자릿수가 세로로 줄을 서게 한다. */
.adm .dtable td.tnum, .adm .dtable th.num { text-align: right; }
.adm .dtable .nowrap { white-space: nowrap; }
.adm .dtable tbody tr:nth-child(even) td { background: var(--bg-2); }
.adm .dtable tbody tr:hover td { background: var(--surface-2); }   /* 위 줄보다 뒤에 와야 이긴다 */
.adm .dtable td { transition: background-color var(--t-fast) var(--ease-out); }

/* 사람이 기다리는 줄 · 사람이 봐야 하는 줄 */
.adm .dtable tbody tr.rowwait td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.admlist .panel.rowwait-p { box-shadow: inset 3px 0 0 var(--warn); }
.admlist { gap: 10px; }
/* 인증 신청 줄 — 신청 뒤 Telegram 아이디가 바뀌었다는 경고(2026-11-13 교차검증).
   .badge 는 nowrap 이라 아이디가 길면 320px 폰에서 화면이 밀렸다. 이 줄은 접히고,
   띄어쓰기 없는 긴 아이디도 중간에서 끊는다. 글 칸·그 바깥 줄에 min-width: 0 이
   없으면 flex 가 글 길이만큼 버텨서 접히지 않는다. */
.admlist .vf-main, .admlist .vf-col { min-width: 0; }
.admlist .vf-warn {
  margin-top: 4px; padding: 3px 8px; border-radius: var(--r-xs);
  border-left: 3px solid var(--warn); background: var(--warn-soft); color: var(--warn-fg);
  font-size: var(--f-xs); font-weight: 800; line-height: 1.45;
  white-space: normal; overflow-wrap: anywhere;
}
@media (hover: hover) { .admlist .panel:hover { border-color: var(--line-2); } }

/* 방금 내가 바꾼 줄 — 표를 다시 그리지 않고 그 줄만 잠깐 알린다 */
@keyframes admRowDone { from { background: var(--ok-soft); } to { background: transparent; } }
.adm .dtable tbody tr.rowdone td { animation: admRowDone 1.4s var(--ease-out) 1; }

/* 승인 대기 줄의 "얼마나 기다렸나" — 가입 날짜보다 이쪽이 먼저 읽혀야 한다 */
.waitfor { font-size: 11px; font-weight: 700; color: var(--warn); }

/* Telegram 아이디 — 승인 판단의 열쇠라 눈에 띄어야 한다.
   (전에는 화면 코드가 #56B6E8 을 직접 칠했다. 토큰으로 돌려놓는다.) */
.adm .tglink { color: var(--accent); font-weight: 700; }
.adm .tglink:hover { text-decoration: underline; }

/* 관리자 로그의 작업 이름 — 기계가 쓴 값이라 사람 글과 구별되게 둔다 */
.logact {
  display: inline-block; padding: 1px 6px; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--f-xs); font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xs);
}

/* ── 실제 결제 ≠ 운영자 처리 ────────────────────────────────────────
   두 숫자가 나란히 앉아 있으면 눈이 미끄러져 둘을 더해 읽는다.
   그게 이 화면에서 가장 위험한 오독이라 색·굵기·세로선까지 갈라 둔다. */
.adm .ordtbl th.c-paid, .adm .ordtbl td.c-paid { color: var(--text); }
.adm .ordtbl td.c-paid { font-weight: 700; }
.adm .ordtbl th.c-granted, .adm .ordtbl td.c-granted { color: var(--text-3); }
.adm .ordtbl th.gsep, .adm .ordtbl td.gsep { border-left: 1px solid var(--line-2); }
.statcols .kvrow b.paid { color: var(--ok); }
.statcols .kvrow b.granted { color: var(--text-3); }
.adm .dtable tbody tr.ord-paid td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.adm .dtable tbody tr.ord-granted td:first-child { box-shadow: inset 3px 0 0 var(--text-4); }

/* ── 통계 막대그래프 ────────────────────────────────────────────────
   마우스를 올리면 나머지가 물러나고 그 하루만 남는다. 30일이 붙어 있는
   그래프에서 "지금 어느 날을 보고 있는지"를 알려 주는 것이 전부다. */
.spcard {
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.spark rect { transition: opacity var(--t-fast) var(--ease-out); }
@media (hover: hover) {
  .spcard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--sh-2); }
  .spcard:hover .spark rect.v { opacity: .32; }
  .spcard .spark rect.v:hover { opacity: 1; }
}
/* 지난 7일이 그 전 7일보다 나아졌는지 — 숫자만으로는 알 수 없다 */
.spcard .spft .spd { font-weight: 800; }
.spcard .spft .spd.up { color: var(--ok); }
.spcard .spft .spd.down { color: var(--danger); }
.spcard .spft .spd.flat { color: var(--text-4); }

/* ── 화면 코드에 박혀 있던 크기들을 여기로 옮겼다 ────────────────
   값이 변하지 않는 것은 CSS 몫이다. JS 로 주면 그림이 그려진 뒤에
   바뀌어 한 번 깜빡이고, CSP(style-src 'self') 와도 어긋난다. */
.mbar .aq { max-width: 280px; }
.adm .adm-st { height: 32px; font-size: var(--f-sm); }
.rpact { max-width: 180px; height: 34px; }
.rpmemo { max-width: 240px; height: 34px; }
.tsel { max-width: 160px; }
.mem-days { max-width: 110px; }
/* 관리자 회원 「관리」 창의 비밀번호 재설정(2026-11-16) — 칸은 남는 폭을 쓰고, 정한 비밀번호는 고정폭 글씨로(0 · O 를 가리기 쉽게) */
.au-pw .au-pwin { flex: 1 1 180px; min-width: 0; }
.au-pwshow { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: var(--f-base);
  padding: 4px 10px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); user-select: all; word-break: break-all; }

/* ── 폰 ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .admq { grid-template-columns: 1fr; }
  .qitem { padding: var(--s3) var(--s4); }
  .qitem .qn { font-size: var(--f-xl); }
  .rpact, .rpmemo { max-width: none; width: 100%; }
}


/* ══════════════════════════════════════════════════════════════════
   pages-community.js 에서 온 것
   ══════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════════
   COMMUNITY · 공지  (pages-community.js 전용 · 선택자는 모두 .cml-)

   여기서 하는 일은 꾸미기가 아니라 **읽는 순서 만들기**다.
   · 게시판마다 뜻이 있는 색 한 점 (무지개가 되지 않게 다섯 갈래만)
   · 안 읽은 글은 또렷하게, 읽은 글은 한 단계 가라앉게
   · 이야기가 오간 글(댓글 많음)은 숫자에 색이 든다
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 게시판 색 (2026-11-14 · 게시판 넷) ───────────────────────────────
   색을 여기 한 곳에서 변수(--cml-tone)로 정하고, 아래는 그 변수만 쓴다.
   전부 tokens.css 의 뜻이 있는 색이다. 새로 지어낸 색은 없다.
   자유게시판은 무채색 — 넷에 다 색을 주면 무지개가 된다. */
.cml-t-gen   { --cml-tone: var(--text-3);    --cml-tone-fg: var(--text-2);    --cml-tone-soft: var(--surface-3); }
.cml-t-alert { --cml-tone: var(--danger);    --cml-tone-fg: var(--danger-fg); --cml-tone-soft: var(--danger-soft); }   /* 사기제보 */
.cml-t-show  { --cml-tone: var(--gold);      --cml-tone-fg: var(--gold);      --cml-tone-soft: var(--gold-soft); }     /* 기프트자랑 */
.cml-t-ask   { --cml-tone: var(--accent);    --cml-tone-fg: var(--accent-fg); --cml-tone-soft: var(--accent-soft); }   /* 질문 */
.cml-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  display: inline-block; background: var(--cml-tone, var(--text-3));
}

/* ── 게시판 탭 — 전체 · 자유게시판 · 사기제보 · 기프트자랑 · 질문 ──────────
   모양은 공용 .tabs 그대로다(폰에서 옆으로 밀리고 오른쪽 끝이 흐려진다 · 다 밀면 core.js 가 흐림을 끈다).
   숫자는 서버가 센 것이 온 뒤에 채워진다 — 빈 동안 자리가 출렁이지 않게 폭을 잡아 둔다. */
.tabs.cml-tabs { margin-bottom: var(--s4); }
.cml-tabs .cnt { display: inline-block; min-width: 1ch; }
.cml-tabs .cnt:empty { margin-left: 0; min-width: 0; }

/* ── 도구 줄 — 살아 있는 줄 · 정렬 · 검색 ─────────────────────────────
   왼쪽: 지금 글이 몇 개인지, 마지막 글이 언제인지(시각은 data-at 이 달려 있어 30초마다 스스로 고쳐 쓴다 —
   이 화면에서 저절로 움직이는 것은 이 점 하나뿐). 오른쪽: 정렬과 검색. 좁으면 줄을 바꾼다. */
.cml-tools {
  display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap;
  margin-bottom: var(--s3); min-width: 0;
}
.cml-bar {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; flex: 1 1 220px; min-width: 0;
  min-height: 36px; font-size: var(--f-sm); color: var(--text-3);
}
.cml-bar[hidden] { display: flex; visibility: hidden; }
.cml-bar b { color: var(--text); font-weight: 800; }
.cml-bar .cml-when { color: var(--text-2); font-weight: 700; }
.cml-sep { color: var(--line-3); }
.cml-newbtn {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent);
}
.cml-newbtn[hidden] { display: none; }
.cml-sort {
  display: inline-flex; flex: 0 0 auto; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.cml-sort a {
  /* 정렬 묶음 겉 높이 = --ctl-h(44 · 테 1 + 안 여백 3 이 위아래) — 옆 검색칸과 같은 높이에 선다(2026-11-16) */
  display: inline-flex; align-items: center; height: calc(var(--ctl-h) - 8px); padding: 0 var(--s3);
  border-radius: var(--r-xs); font-size: var(--f-sm); font-weight: 700; color: var(--text-3); white-space: nowrap;
}
.cml-sort a:hover { color: var(--text-2); }
.cml-sort a.on { background: var(--surface-3); color: var(--text); }
.cml-search { display: flex; flex: 0 1 240px; min-width: 0; gap: var(--s1); }
.cml-search .input { height: var(--ctl-h); min-width: 0; font-size: var(--f-md); }
.cml-search .btn { height: var(--ctl-h); width: var(--ctl-h); flex: 0 0 auto; }
.cml-found { margin: 0 0 var(--s3); font-size: var(--f-sm); color: var(--text-2); overflow-wrap: anywhere; }
.cml-found a { margin-left: var(--s2); color: var(--accent-fg); font-weight: 700; }

/* ── 말머리 ─────────────────────────────────────────────────────────
   글머리의 작은 딱지 — 게시판 이름 · 「공지」 · 「답변 대기」. 색은 게시판 색(--cml-tone)을 따른다. */
.cml-hd {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; max-width: 100%;
  border-radius: var(--r-xs); font-size: 11px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  color: var(--cml-tone-fg, var(--text-2)); background: var(--cml-tone-soft, var(--surface-3));
}
.cml-hd-pin  { color: var(--accent-fg); background: var(--accent-soft); }
.cml-hd-wait { color: var(--warn-fg); background: var(--warn-soft); flex: 0 0 auto; }

/* ── 글 한 줄 (전체 · 자유게시판 · 사기제보 · 질문) ────────────────────
   한국 게시판의 줄 모양 — [말머리] 제목 [댓글 수] 표시 … 닉네임 · 시간 · 조회 · 좋아요.
   줄 전체가 링크다. 넓은 화면은 한 줄, 900px 아래는 두 줄(제목 줄 / 글쓴이 줄)로 접힌다
   (768px 태블릿에서 한 줄로 세우면 제목 몫이 300px 남짓이라 짧은 제목도 잘렸다 — 2026-11-14 실측).
   높이는 폰에서도 44px 을 넘는다(손가락 자리). 긴 제목은 「…」로 끊긴다 — 줄이 접히면 표가 흔들린다. */
.cml-board { border-top: 1px solid var(--line-2); min-width: 0; }
.cml-board.is-empty, .cml-gal.is-empty { border-top: 0; display: block; }
.cml-li {
  position: relative; display: flex; align-items: center; gap: var(--s3);
  min-height: 48px; padding: var(--s2) var(--s2); min-width: 0;
  border-bottom: 1px solid var(--line); color: var(--text);
  transition: background-color .13s var(--ease);
}
.cml-li:hover { background-color: var(--surface); }
.cml-li.is-pin { background-color: var(--bg-2); }
.cml-li-main {
  flex: 1 1 auto; min-width: 0; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4); row-gap: 2px;
}
.cml-li-t { grid-column: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.cml-li-hd { flex: 0 0 6.6em; display: flex; min-width: 0; }
.cml-li-tt {
  flex: 0 1 auto; min-width: 0; font-size: var(--f-base); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cml-li.is-pin .cml-li-tt { font-weight: 800; }
.cml-li-c { flex: 0 0 auto; font-size: var(--f-sm); font-weight: 800; color: var(--accent-fg); white-space: nowrap; }
.cml-li-ic { flex: 0 0 auto; display: inline-flex; line-height: 0; color: var(--text-3); }
.cml-li-g {
  grid-column: 1; padding-left: calc(6.6em + 6px); font-size: var(--f-xs); color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.cml-li-m {
  grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: var(--s3);
  font-size: var(--f-xs); color: var(--text-3); white-space: nowrap; min-width: 0;
}
.cml-li-m .cml-who { width: 8.5em; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-weight: 700; }
.cml-li-m .ptime { width: 5.5em; }
.cml-li-m .cml-m { width: 4.6em; }
.cml-li-m .cml-m + .cml-m { width: 3.2em; }
/* 선물이 담긴 글의 작은 그림 — ui.giftImage 가 그린 칸을 줄 높이에 맞춰 줄인다(움직임 표시는 여기서 뺀다) */
.cml-li .cml-li-gimg { flex: 0 0 44px; width: 44px; height: 44px; aspect-ratio: auto; border-radius: var(--r-xs); overflow: hidden; }
/* 44px 그림 위에서는 「움직임」 표시가 그림을 가린다 — 줄 목록에서만 뺀다(격자와 상세에는 그대로 있다) */
.cml-li .gimg.cml-li-gimg .animflag { display: none; }

/* 방금 올라온 글 — 올라온 지 24시간이 안 된 글에만 붙는다 */
.cml-new {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 1;
  color: var(--danger-fg); background: var(--danger-soft);
}
/* 이미 읽은 글 — 지우지 않고 한 단계 가라앉힌다 */
.cml-li.is-read .cml-li-tt, .cml-gc.is-read .cml-gc-t { color: var(--text-3); font-weight: 500; }

/* 조회·좋아요·댓글 숫자 */
.cml-m { display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.cml-m svg { opacity: .7; }
.cml-m b { font-weight: 700; color: inherit; }

/* 넓은 화면 — 선물 그림이 있는 줄과 없는 줄의 닉네임·시간·조회 칸이 어긋나지 않게, 그림이 하나라도 있는 목록은
   모든 줄이 그림 자리를 비워 두고 그림은 그 자리에 놓는다(「전체」 탭에서만 생기는 일이다). */
@media (min-width: 901px) {
  .cml-board.has-gifts .cml-li { padding-right: calc(44px + var(--s3) + var(--s2)); }
  .cml-board.has-gifts .cml-li .cml-li-gimg { position: absolute; right: var(--s2); top: 50%; margin-top: -22px; }
}
@media (max-width: 900px) {
  .cml-li { min-height: 56px; padding: var(--s2) var(--s1); }
  .cml-li-main { grid-template-columns: minmax(0, 1fr); }
  .cml-li-hd { flex: 0 0 auto; }
  /* 게시판 하나만 보는 탭에서는 줄마다 같은 말머리가 되풀이된다 — 좁은 화면에서는 그 자리를 제목에 준다
     (320px 영어 화면의 질문 탭에서 제목이 여섯 글자만 보였다 · 2026-11-14 실측). 「공지」는 남긴다. */
  .cml-board.is-one .cml-li-hd:not(.is-pin) { display: none; }
  .cml-li-g { padding-left: 0; }
  .cml-li-m { grid-column: 1; grid-row: auto; gap: var(--s2); overflow: hidden; }
  .cml-li-m .cml-who { width: auto; max-width: 9em; flex: 0 1 auto; }
  .cml-li-m .ptime, .cml-li-m .cml-m, .cml-li-m .cml-m + .cml-m { width: auto; flex: 0 0 auto; }
}
/* 「전체」 탭 · 아주 좁은 화면(320px 폰) — 말머리와 선물 그림이 자리를 먼저 가져가 제목이 대여섯 글자만 보였다
   (영어 「Gift showcase」 줄 82px · 2026-11-14 실측). 말머리가 제 줄을 쓰고, 제목이 그 아랫줄을 통째로 쓴다.
   제목은 남는 폭을 다 받되(flex: 1 1 0) 줄바꿈 셈에서는 6em 으로만 쳐서, 뒤의 [댓글 수] · 표시 · 「N」이 셋째 줄로 밀리지 않는다.
   게시판 하나짜리 탭(.is-one)은 말머리를 이미 뺐으므로 그대로다. */
@media (max-width: 360px) {
  .cml-board:not(.is-one) .cml-li-t { flex-wrap: wrap; row-gap: 3px; }
  .cml-board:not(.is-one) .cml-li-hd { flex: 1 1 100%; }
  .cml-board:not(.is-one) .cml-li-tt { flex: 1 1 0; min-width: 6em; }
}

/* ── 기프트자랑 — 그림 격자 ─────────────────────────────────────────
   폰 두 칸 · 태블릿 세 칸 · 넓은 화면 네 칸. 한 칸 = 그림(선물 → 첫 사진 → 빈칸) · 제목 · 선물 이름 ·
   「모델 · 배경 · 심볼」 · 글쓴이 · 좋아요/댓글. 그림 칸은 늘 정사각형이라 격자가 출렁이지 않는다. */
.cml-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); min-width: 0; }
@media (min-width: 700px)  { .cml-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1040px) { .cml-gal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cml-gc {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text);
  transition: border-color .13s var(--ease);
}
.cml-gc:hover { border-color: var(--line-3); }
.cml-gc .cml-gc-gimg { border-radius: 0; }
.cml-gc-pic {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface-2); color: var(--text-4);
}
.cml-gc-photo { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.cml-gc-none svg { opacity: .55; }
.cml-gc-bd { display: flex; flex-direction: column; gap: 3px; padding: var(--s3); min-width: 0; }
.cml-gc-t {
  font-size: var(--f-md); font-weight: 700; line-height: 1.4; min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 선물 이름 줄과 특성 줄 — 한 줄에 가두지 않는다(2026-11-14 교차검증).
   폰의 칸(140px · 320px 폰은 112px)에서 「Heart Locket #6840…」처럼 발행번호가 가운데에서 끊기고
   「모델 · 배경 · 심볼」의 심볼은 한 번도 보이지 않았다. 두 줄까지 쓰고, 번호(.num)는 쪼개지 않는다 —
   번호는 손님이 텔레그램 원본과 대조하는 값이라 잘려도 되는 것은 뒤의 한글 읽기 쪽이다(ui.js 의 U.giftTitle). */
.cml-gc-g {
  font-size: var(--f-xs); font-weight: 700; line-height: 1.45; color: var(--text-2); min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cml-gc-g .num { color: var(--text-3); font-weight: 700; white-space: nowrap; }
.cml-gc-tr {
  font-size: var(--f-xs); line-height: 1.45; color: var(--text-3); min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 글쓴이 줄 — 닉네임이 제 몫(4.5em)을 지키고, 못 서는 좋아요·댓글 묶음(.cml-gc-n)이 통째로 아랫줄로 내려간다
   (320px 폰에서 닉네임 몫이 50px 뿐이라 「GiftH…」가 됐다) */
.cml-gc-m { display: flex; align-items: center; flex-wrap: wrap; gap: 2px var(--s2); margin-top: 3px; font-size: var(--f-xs); color: var(--text-3); min-width: 0; }
.cml-gc-m .cml-who { flex: 1 1 auto; min-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--text-2); }
.cml-gc-n { display: inline-flex; align-items: center; gap: var(--s2); flex: 0 0 auto; }
.cml-gc-m .cml-m { flex: 0 0 auto; }

/* 기다리는 동안 — 회색 상자가 가만히 있으면 멈춘 것처럼 보인다 */
.cml-sk-title { height: 28px; width: 72%; margin-bottom: var(--s5); }
.cml-sk-line { height: 13px; margin-bottom: 11px; }
.cml-sk-line.w2 { width: 88%; }
.cml-sk-line.w3 { width: 64%; }

/* ── 글 상세 ─────────────────────────────────────────────────────── */
.postwrap.cml-doc {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--s7);
}
.postwrap.cml-doc-sm { max-width: 720px; gap: var(--s5); }
.postwrap.cml-doc-tight { gap: var(--s4); }
.postwrap.cml-form { max-width: 820px; margin: 0 auto; }
.cml-back { align-self: flex-start; }

.cml-arthd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
a.cml-hd:hover { text-decoration: underline; }
/* 사기제보 글의 한 줄 — 회원의 제보이지 운영팀의 판정이 아니다. 조용하게, 그러나 제목 바로 아래에 둔다. */
.cml-claim, .cml-gift-note {
  display: flex; align-items: flex-start; gap: 6px; margin: 0; min-width: 0;
  font-size: var(--f-xs); line-height: 1.55; color: var(--text-3);
}
.cml-claim svg, .cml-gift-note svg { flex: 0 0 auto; margin-top: 2px; }

/* ── 선물 칸 (기프트자랑 글의 본문 위 · 글쓰기의 미리보기) ───────────────
   그림 옆에 이름과 특성 셋(모델 · 배경 · 심볼 — 값 · 한글 읽기 · 희귀도 %). 테두리 있는 면은 이 칸 하나다.
   그림은 ui.giftImage 가 그린 것 그대로 — 배경·심볼·움직임 겹침 규칙(.gimg)을 여기서 다시 정하지 않는다.
   맨 아래 한 줄(읽어 온 정보 · 소유 확인이 아님)은 칸 폭을 통째로 쓴다. */
.cml-gift {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start;
  padding: var(--s4); min-width: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2);
}
.cml-gift-pic { min-width: 0; }
.cml-gift-pic .gimg { border-radius: var(--r-md); overflow: hidden; }
.cml-gift-bd { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.cml-gift-nm { font-size: var(--f-xl); line-height: 1.35; overflow-wrap: anywhere; }
.cml-gift-nm .num { color: var(--text-3); }
/* 특성 세 줄 — 이름표 칸은 **글자 폭만큼만** 잡는다(2026-11-14 교차검증).
   예전에는 6.5em(98px)으로 잡아 두어 「모델」 두 글자 옆에 77px 이 비고, 폰에서 값 칸이 좁아
   「Electric / Purple 선명한 보라」처럼 영문 이름이 가운데에서 접혔다. 세 줄이 같은 칸 폭을 쓰도록
   바깥(.cml-traits)이 칸을 정하고 줄(.cml-trait)이 그 칸을 물려받는다(subgrid).
   subgrid 를 모르는 옛 브라우저는 줄마다 제 글자 폭을 쓴다(한국어 이름표는 모두 두 글자라 어긋나지 않는다). */
.cml-traits {
  display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: var(--s2);
  border-top: 1px solid var(--line); min-width: 0;
}
.cml-trait {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--s2);
  padding: var(--s2) 0; border-bottom: 1px solid var(--line); min-width: 0;
}
@supports (grid-template-columns: subgrid) {
  .cml-trait { grid-template-columns: subgrid; }
}
.cml-trait-k { font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
/* 값 — 영문 이름은 한 줄에 서고, 자리가 모자라면 한글 읽기가 먼저 아랫줄로 내려간다(필터 목록 .fopt 과 같은 방식) */
.cml-trait-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; overflow-wrap: anywhere; }
.cml-trait-v b { font-size: var(--f-base); font-weight: 700; min-width: 0; }
.cml-trait-v .gko { margin-left: 0; }
.cml-trait-r { font-size: var(--f-sm); font-weight: 800; color: var(--text-2); white-space: nowrap; }
.cml-trait.is-empty .cml-trait-v b { color: var(--text-4); font-weight: 600; }
.cml-gift-src {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-size: var(--f-sm); font-weight: 700; color: var(--tg-fg);
}
.cml-gift-src:hover { text-decoration: underline; }
.cml-gift-note { grid-column: 1 / -1; padding-top: var(--s3); border-top: 1px solid var(--line); }
.cml-gift.is-pv { grid-template-columns: 132px minmax(0, 1fr); margin-top: var(--s2); }
.cml-gift.is-pv .cml-gift-nm { font-size: var(--f-lg); }
/* 그림을 못 받은 선물 — 그림 칸 없이 글자만 선다(기본 선물상자를 그 선물의 그림처럼 세우지 않는다).
   올리기 전과 글쓴이에게만 보이는 한 줄(.cml-gift-miss)이 다시 받는 길을 알려 준다. */
.cml-gift.no-pic, .cml-gift.is-pv.no-pic { grid-template-columns: minmax(0, 1fr); }
.cml-gift-miss {
  display: flex; align-items: flex-start; gap: 6px; margin: 0; min-width: 0;
  font-size: var(--f-xs); line-height: 1.55; color: var(--warn-fg);
}
.cml-gift-miss svg { flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 600px) {
  .cml-gift, .cml-gift.is-pv { grid-template-columns: minmax(0, 1fr); padding: var(--s3); }
  .cml-gift-pic { width: min(100%, 240px); margin: 0 auto; }
  .cml-gift.is-pv .cml-gift-pic { width: min(100%, 160px); }
}
.cml-title { font-size: var(--f-3xl); line-height: 1.32; letter-spacing: -.02em; }
.cml-by { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.cml-bymeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--f-xs); margin-top: 2px; }
/* 내 글에는 「수정 · 삭제」가 같은 줄에 선다 — 좁은 폰에서 닉네임이 「TonW / hale」로 쪼개졌다(2026-11-14 실측 375px).
   글쓴이 칸이 제 폭을 지키고, 못 서는 단추가 다음 줄로 내려간다. */
.cml-by > .grow { flex: 1 1 11em; min-width: 0; }
.cml-by > .grow > a { flex-wrap: wrap; overflow-wrap: anywhere; }
.cml-own { flex: 0 0 auto; }

/* 본문 — 눈이 쉬어야 오래 읽는다 */
.postbody.cml-body { font-size: var(--f-lg); line-height: 1.85; white-space: normal; }
.cml-body .cml-p, .cml-body .cml-quote { white-space: pre-wrap; margin: 0 0 var(--s4); }
.cml-body > :last-child { margin-bottom: 0; }
/* 문서(가이드 · 정책) 본문 — 줄마다 한 덩이로 그린다(pages-community.js bodyHtml 의 doc 모양 · 2026-11-14 교차검증).
   「1. 받는 정보」 같은 소제목은 굵게, 「· 」로 시작하는 줄은 다음 줄이 글자 밑에서 시작하게(내어쓰기) 한다.
   회원이 쓴 글 · 공지 목록은 이 모양을 쓰지 않는다. */
.cml-body .cml-dp { white-space: normal; }
.cml-body .cml-dp > span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.cml-body .cml-dh { font-weight: 800; color: var(--text); margin-bottom: 2px; }
.cml-body .cml-dli { padding-left: .6em; text-indent: -.6em; }
/* 설계 98 T7 — 포탈형 마켓 약관 공개 읽기(#/doc/custody-terms) — 약관 글자 그대로(줄바꿈 유지) */
.cml-terms-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.cml-body .cml-quote {
  padding: 3px 0 3px var(--s4); border-left: 3px solid var(--line-2); color: var(--text-2);
}
.postbody.cml-body-sm { font-size: var(--f-base); line-height: 1.75; }
.cml-img { border-radius: var(--r-md); display: block; }
.cml-react { flex-wrap: wrap; }

/* ── 댓글 — 게시판이 아니라 대화처럼 ────────────────────────────── */
.cml-cmthd { font-size: var(--f-lg); }
.cmt.cml-cmt { border-top: 0; padding: var(--s2) 0; align-items: flex-start; }
.cmt.cml-cmt .bd { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cmt.cml-cmt .cml-cmthd2 { font-size: var(--f-xs); }
.cmt.cml-cmt .txt.cml-bubble {
  margin-top: 0; max-width: 100%;
  padding: 9px var(--s3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px var(--r-md) var(--r-md) var(--r-md);
  color: var(--text);
}
.cmt.cml-cmt .acts { margin-top: 1px; }
/* 지금 답하고 있는 댓글 — 어디에 답하는지 손님이 눈으로 확인한다 */
.cmt.cml-cmt.is-target .txt.cml-bubble { border-color: var(--accent-line); background: var(--accent-soft); }
/* 답글은 한 칸 들어가고, 위 댓글과 갈고리로 이어진다 */
.cmt.cml-cmt.reply { position: relative; padding-left: var(--s6); }
.cmt.cml-cmt.reply::before {
  content: ''; position: absolute; left: 13px; top: 0; width: 12px; height: 26px;
  border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  border-bottom-left-radius: 8px;
}

.cml-cmtin { min-height: 84px; }
/* 답글 이름표 — x 를 누르면 일반 댓글로 되돌아간다 */
.cml-rtag {
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 3px 0 9px; margin-right: 6px;
  border-radius: var(--r-full); font-size: var(--f-xs); font-weight: 700;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.cml-rtag[hidden] { display: none; }
.cml-rx { display: inline-flex; align-items: center; line-height: 0; padding: 3px; border-radius: 50%; color: inherit; opacity: .7; }
.cml-rx:hover { opacity: 1; }

/* 글쓰기 — 몇 자 썼는지 보이면 8000자에서 잘려 놀라지 않는다 */
.cml-count { color: var(--text-4); white-space: nowrap; margin-left: auto; }
.cml-count.is-near { color: var(--warn); }
.cml-bodyin { min-height: 220px; }

/* ── 글쓰기 — 게시판 고르기 (큰 칩 넷) ────────────────────────────────
   라디오 묶음이다(화살표 키로 옮긴다). 동그라미는 감추고 칩 전체가 눌린다 — 키보드 초점은 칩 테두리로 보인다.
   폰에서는 두 칸 × 두 줄(한 줄에 넷을 세우면 320px 에서 글자가 잘린다). */
.cml-pick { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cml-pick > legend { padding: 0; margin-bottom: 7px; font-size: var(--f-sm); font-weight: 700; color: var(--text-2); }
.cml-pick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); min-width: 0; }
.cml-pk { position: relative; display: block; min-width: 0; cursor: pointer; }
.cml-pk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cml-pk-in {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 var(--s2);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
  font-size: var(--f-md); color: var(--text-2); text-align: center; min-width: 0;
  transition: border-color .13s var(--ease), background-color .13s var(--ease);
}
.cml-pk-in b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.cml-pk:hover .cml-pk-in { border-color: var(--line-3); }
.cml-pk input:checked + .cml-pk-in { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-fg); }
.cml-pk input:checked + .cml-pk-in b { font-weight: 800; }
.cml-pk input:focus-visible + .cml-pk-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.cml-pick-hint { min-height: 1.5em; }
@media (max-width: 600px) { .cml-pick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 게시판마다 바뀌는 도움말 — 사기제보의 「함께 적어 주세요」. 비어 있으면 자리(폼의 줄 간격)도 차지하지 않는다 */
.cml-helpbox:empty { display: none; }
.cml-help {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); min-width: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
  font-size: var(--f-sm); line-height: 1.6; color: var(--text-2);
}
.cml-help-alert { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-fg); }
.cml-help-t { display: flex; align-items: center; gap: 6px; font-size: var(--f-md); }
.cml-check { margin: 0; padding-left: 1.2em; list-style: disc; }
.cml-check li { overflow-wrap: anywhere; }
.cml-help-p { margin: 0; }
.cml-help-p a { font-weight: 800; text-decoration: underline; }

/* 쓰던 내용을 불러왔다는 한 줄 — 지울 길(「쓰던 내용 지우기」)이 옆에 선다. 좁으면 단추가 아랫줄로 내려간다 */
.cml-draft { align-items: center; flex-wrap: wrap; margin-bottom: var(--s4); }
.cml-draft .btn { flex: 0 0 auto; }
/* 선물 주소를 못 읽은 까닭 — 주소 칸 아래에 남는다(토스트는 3초 만에 사라진다). .note 가 flex 라 hidden 을 따로 지켜 준다 */
.cml-gifterr { margin-top: var(--s2); }
.cml-gifterr[hidden] { display: none; }

/* 기프트자랑 — 선물 주소 칸 */
.cml-opt { margin-left: 4px; font-size: var(--f-xs); font-weight: 600; color: var(--text-4); }
.cml-giftrow { display: flex; gap: var(--s2); min-width: 0; }
.cml-giftrow .input { flex: 1 1 auto; min-width: 0; }
.cml-giftrow .btn { flex: 0 0 auto; height: 42px; }
.cml-addimg { align-self: flex-start; }
.cml-submit { flex-wrap: wrap; }

/* ── 손가락 자리 44px (CLAUDE.md 「손가락 자리」) ─────────────────────────
   새로 만든 누르는 자리 가운데 작았던 것들 — 정렬(30px) · 검색칸과 검색 단추(38px) ·
   선물 칸의 「Telegram 에서 보기」(32px) · 내 글의 「수정 · 삭제」(36px). 마우스 화면의 모양은 그대로 둔다. */
@media (hover: none) {
  .cml-sort { padding: 0; gap: 0; overflow: hidden; }
  .cml-sort a { height: auto; min-height: 44px; border-radius: 0; }
  .cml-search .input, .cml-search .btn { height: 44px; }
  .cml-search .btn { width: 44px; }
  .cml-gift-src { min-height: 44px; }
  .cml-own { gap: var(--s3); }
  .cml-own .btn { min-height: 44px; }
}


/* ── 공지 ─────────────────────────────────────────────────────────── */
.cml-notice { position: relative; overflow: hidden; }
.cml-notice + .cml-notice { margin-top: var(--s4); }
.cml-notice-t { font-size: var(--f-base); }
.cml-notice.is-pin { border-color: var(--accent-line); }
.cml-notice.is-pin::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
}

/* ── 폰 ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cml-title { font-size: var(--f-2xl); }
  .postbody.cml-body { font-size: var(--f-base); line-height: 1.8; }
  .cml-bar { font-size: var(--f-xs); flex-basis: 100%; min-height: 0; }
  .cml-bar[hidden] { display: none; }
  /* 320px 폰에서는 정렬 옆에 남는 칸(150px)이 좁아 보기 글자 「제목 · 내용 검색」이 「제목 · 내용」에서 잘렸다 —
     190px 이 안 되면 제 줄로 내려가 폭을 다 쓴다(375px 폰에서는 정렬 옆에 그대로 선다). */
  .cml-search { flex: 1 1 190px; }
  /* 폰에서 글자 칸은 16px — 그보다 작으면 iOS 가 누르는 순간 화면을 확대한다 */
  .cml-search .input { font-size: var(--f-input-touch); }
  .cmt.cml-cmt.reply { padding-left: var(--s5); }
  .cmt.cml-cmt.reply::before { left: 7px; }
}


/* ══════════════════════════════════════════════════════════════════
   ui.js 에서 온 것
   ══════════════════════════════════════════════════════════════════ */

/* ============================================================================
   ui.js 가 그리는 조각들 — 매물 카드 · 판매자 카드 · 별점 · 빈 화면 · 쪽 넘김
   (담당 파일: public/js/ui.js. 선택자는 그 조각들 안으로만 좁혀 두었다)
   ========================================================================== */

/* ── 매물 카드 ─────────────────────────────────────────────────────
   눈이 가는 차례를 값 → 이름 → 판매자로 못박는다.
   지금까지는 이름과 값이 거의 같은 무게라, 목록을 훑을 때 무엇을 견주고
   있는지가 흐렸다. 사려는 사람이 먼저 재는 것은 언제나 값이다. */

/* 방금 올라온 매물에 잠깐 두르는 테(.is-fresh)가 카드 모서리를 따라가려면
   카드가 자리의 기준이 되어야 한다 */
.gcard { position: relative; }

.gcard .gcard-nm {
  font-size: var(--f-sm); font-weight: 700; color: var(--text-2);
  /* 이름이 길어도 두 줄에서 끊는다 — 카드 키가 들쭉날쭉하면 목록이 어수선해진다 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-base) var(--ease-out);
}
.gcard:hover .gcard-nm { color: var(--text); }

/* 값과 '언제 올라왔는지'를 한 줄에 나란히. 살 사람이 저울질하는 두 가지다.
   자리가 모자라면 접힌다(375px 두 칸 배치에서 값이 길어질 때). */
.gmoney {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s2); flex-wrap: wrap; margin-top: auto;
}
.gcard .gmoney .gprice {
  margin-top: 0; font-size: var(--f-xl); font-weight: 800;
  color: var(--text); letter-spacing: -.02em; line-height: 1.2;
}
.gcard .gmoney .gprice .u { font-size: var(--f-xs); font-weight: 700; color: var(--text-3); margin-left: 4px; }
.gcard .gtime { font-size: var(--f-xs); color: var(--text-4); white-space: nowrap; margin-left: auto; }

/* 한 시간 안에 올라온 것 — 목록에서 새 매물이 저절로 도드라진다.
   깜빡이지 않는다. 색 하나면 충분하고, 깜빡이면 그때부터 광고판이 된다. */
.gtime.is-new, .ptime.is-new, .rtime.is-new, .wtime.is-new { color: var(--accent); font-weight: 700; }

/* 그림 위 딱지는 서로 다른 모서리에 있다 (상태=왼위 · 움직임=오른위 · Premium=왼아래 · 마켓 로고+하트=오른아래).
   상태 딱지는 유리판처럼 깔아 그림을 가리지 않게 하고, 뜻은 글자색과 점으로 남긴다. */
.gcard .gimg > .st {
  height: var(--pill-h-sm); padding: 0 8px; max-width: calc(100% - 46px);
  background: rgba(9, 12, 19, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 찜 하트 — 손가락이 닿는 기기에서는 더 크게(38px · 「손가락 자리」).
   (app.css 의 @media (hover:none) .fav 규칙은 .gcard .fav 보다 약해 눌리지 않았다)
   크기는 「카드 그림 아래 한 줄」의 .gfoot .fav 가 토큰(--fav-sz · --fav-hit)으로 정한다. */
.gcard .fav svg { transition: transform var(--t-fast) var(--ease-spring); }
.gcard .fav.on svg { transform: scale(1.14); }

/* 그림은 도착하면 짧게 떠오른다. 상자는 그 전부터 정사각형으로 자리를 잡고
   있으므로(aspect-ratio) 목록이 출렁이지 않는다.
   fill-mode 를 두지 않는 이유: 끝난 뒤 값을 돌려줘야 hover 확대가 살아난다. */
.gcard .gimg > img { animation: gimgIn .42s var(--ease-out); }
@keyframes gimgIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* 목록이 그려질 때 앞쪽 카드부터 차례로 한 번 떠오른다.
   scroll 로 하나씩 띄우지 않는 이유: 목록은 innerHTML 로 갈아 끼우는 곳이 많아
   관찰자를 놓치면 카드가 안 보인 채 남는다. 애니메이션은 무슨 일이 있어도 끝난다.
   덤으로, 조건을 바꿔 목록이 새로 오면 이 물결이 "바뀌었다"고 알려 준다. */
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard) {
  animation: gcardIn .42s var(--ease-out) backwards;
}
@keyframes gcardIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(2) { animation-delay: .035s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(3) { animation-delay: .07s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(4) { animation-delay: .105s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(5) { animation-delay: .14s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(6) { animation-delay: .175s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(7) { animation-delay: .21s; }
:is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard):nth-child(n+8) { animation-delay: .245s; }

/* 판매자 이름줄 — 별점 숫자는 조금 밝게, 별 아이콘만 금색으로 */
.gcard .gseller .rt { color: var(--text-2); font-weight: 700; }
.gcard .gseller .rt svg { color: var(--gold); }

/* ── 별점 ──────────────────────────────────────────────────────────
   반 개를 그린다. 뒤에 회색 별을 깔고 그 위에 금색 별을 반만 덮는다. */
.stars { align-items: center; }
.stars .hf { position: relative; display: inline-flex; }
.stars .hf-b { display: inline-flex; color: var(--line-3); }
.stars .hf-f {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  overflow: hidden; display: inline-flex; color: var(--gold);
}
.stars .hf-f svg { flex: none; }

/* 별 + 숫자 + 후기 수를 한 덩어리로 읽히게
   (이름을 .ratewrap 으로 둔 이유: .ratebox 는 판매자 프로필의 평점 상자가 이미 쓴다) */
.ratewrap { display: inline-flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.ratewrap .rv { font-size: var(--f-md); font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.ratewrap .rc { font-size: var(--f-sm); color: var(--text-3); }
.ratewrap .stars-lg ~ .rv { font-size: var(--f-xl); }

/* ── 판매자 카드 ───────────────────────────────────────────────────
   배지 세 축을 이름줄에서 떼어 제 줄로 옮겼다. 이름 뒤에 붙어 있으면
   이름 길이에 따라 배지가 아무 데나 접혀 줄이 흐트러진다. */
.scard .scard-nm {
  display: block; font-size: var(--f-base); font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sbadges { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1); min-height: 22px; }
/* 저절로 쌓이는 등급(왼쪽)과 사람·돈이 정하는 표시(오른쪽) 사이의 가는 금 */
.sbadges .bdiv { width: 1px; height: 14px; background: var(--line-2); margin: 0 4px; flex-shrink: 0; }

/* 숫자 세 칸 — 같은 너비로 나누고 사이에 금을 그어 자릿수가 달라도 줄이 맞는다 */
.scard .scard-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 0;
}
.scard .scard-stats > div + div { border-left: 1px solid var(--line); }
.scard .scard-stats b { display: block; font-size: var(--f-lg); font-weight: 800; color: var(--text); line-height: 1.2; }
.scard .scard-stats span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.scard .scard-join { font-size: var(--f-xs); margin-top: -2px; }

/* ── 빈 화면 ───────────────────────────────────────────────────────
   "없습니다"로 끝나면 손님은 되돌아 나간다. 무엇을 하면 되는지가 보여야 한다. */
.empty { padding: var(--s8) var(--s5); }
.empty .ei {
  width: 58px; height: 58px; margin: 0 auto var(--s4);
  display: grid; place-items: center; border-radius: 50%;
  color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line);
}
.empty h4 { font-size: var(--f-xl); color: var(--text); margin-bottom: var(--s2); }
.empty p { max-width: 400px; margin: 0 auto; color: var(--text-3); }
.empty .etips { max-width: 400px; margin: var(--s4) auto 0; display: grid; gap: 7px; text-align: left; }
.empty .etips li { position: relative; padding-left: 15px; font-size: var(--f-sm); color: var(--text-3); }
.empty .etips li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line-3);
}
.empty .btn { margin-top: var(--s5); }
/* 단추가 둘일 때 — 한 묶음에 넣어 틈을 준다(그냥 이어 붙이면 한 덩어리 단추로 보인다). 좁으면 아랫줄로 내려간다 */
.empty .empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }
.empty .empty-acts .btn { margin-top: 0; }

/* ── 쪽 넘기기 ─────────────────────────────────────────────────────
   지금 몇 쪽인지가 또렷해야 한다. 지금 쪽은 색을 채우고 옅은 테를 두른다. */
.pager button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pager button.on { font-weight: 800; box-shadow: 0 0 0 3px var(--accent-soft); }
.pager .pgnav { padding: 0 var(--s3); }
.pager .pgnav svg { flex: none; }
.pager .pgnav.prev svg { transform: rotate(180deg); }
.pager .pgap { min-width: 22px; text-align: center; color: var(--text-4); font-weight: 700; }
.pgnote { text-align: center; margin-top: var(--s3); font-size: var(--f-xs); color: var(--text-4); }
@media (max-width: 430px) {
  .pager .pgnav span { display: none; }     /* 좁으면 화살표만 남긴다 */
  .pager .pgnav { padding: 0; min-width: 36px; }
}

/* ── 매물 미리보기 값 ────────────────────────────────────────────── */
.gpv .p .u { font-size: var(--f-xs); font-weight: 700; color: var(--text-3); margin-left: 3px; }

/* ── 좁은 화면 ─────────────────────────────────────────────────────
   값은 여전히 카드에서 가장 크되, 두 칸 배치에서 줄을 넘기지 않을 만큼만. */
@media (max-width: 860px) {
  .gcard .gmoney .gprice { font-size: var(--f-lg); }
}
@media (max-width: 380px) {
  .gcard .gmoney { gap: 4px; }
  .gcard .gmoney .gprice { font-size: var(--f-base); }
  .scard .scard-stats b { font-size: var(--f-md); }
}

/* 움직임을 줄여 달라고 한 분에게는 들고 나는 것을 전부 없앤다
   (motion.css 가 시간을 0 으로 만들지만, 늦게 트는 것까지 지워야 깜빡이지 않는다) */
@media (prefers-reduced-motion: reduce) {
  :is(.ggrid, .ggrid-4c, .ggrid-4, .grail) > :is(.gcard, .scard),
  .gcard .gimg > img { animation: none !important; }
}

/* ── 매물 상세: 그림 크기 ──────────────────────────────────────────────
   그림 칸이 남는 자리를 전부 먹어 화면의 3분의 2가 그림 하나였다.
   Gift 그림은 단순한 그림 한 장이라 크게 키운다고 더 알 수 있는 것이 없고,
   정작 손님이 재야 할 것(값·특성·판매자·연락)은 오른쪽 좁은 칸에 몰려 있었다.

   그래서 자리를 맞바꾼다 — 그림에 최대 폭을 정하고, 남는 자리는 판단에 쓰는
   정보 쪽으로 넘긴다. (다른 마켓들이 쓰는 비율을 재어 참고했다.
   베끼는 것이 아니라 '그림 : 정보' 의 무게를 바로잡는 것이다)
   두 칸으로 놓는 것은 1100px 위에서만이다. 그 아래는 이미 위·아래로 쌓게
   해 두었으므로(=@media (max-width: 1100px)) 그 결정을 덮지 않는다. */
@media (min-width: 1101px) {
  .detail { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  /* 아주 넓은 화면에서도 그림만 계속 커지지 않게 한 번 더 못을 박는다 */
  .detail-img { max-width: 440px; }
}

/* (매물 상세의 Gift 정보 · 연락 묶음 · 거래 방법 규칙은 아래 「매물 상세 — 자리 배분 (2026-11-14)」 한 곳으로 모았다) */


/* 머리말이 1200px 안팎에서 가로로 15px 넘치던 것 —
   언어 단추가 생기면서 오른쪽 묶음이 그만큼 길어졌다.
   검색창을 없애는 대신(1200px 노트북에서 검색은 자주 쓴다) 메뉴 여백과
   검색창 너비를 조금씩만 줄여 자리를 만든다. */
/* (예전 한 줄 머리말이 1200px 안팎에서 넘치던 것을 메뉴 여백으로 메웠던 자리 —
   2026-11-12 넓은 화면 머리말이 두 줄이 되면서 넘칠 일이 없어져 뺐다) */

/* (매물 상세의 자리 배분은 아래 「매물 상세 — 자리 배분 (2026-11-14)」 에 있다. 그림 칸을 붙여 두던 규칙(sticky)은 뺐다 —
   그림 아래에 Gift 정보가 들어와 왼쪽 칸이 더는 비지 않는다.) */

/* ── 회사 로고 (로그인·가입 화면) ─────────────────────────────────────
   로고 그림에는 어두운 바탕이 함께 그려져 있다. 그 바탕색(#02060F)이
   사이트 바탕(#090C13)보다 조금 어두워서, 그냥 얹으면 네모난 자국이 보인다.

   그래서 그림을 담는 상자에 **그림과 같은 바탕색**을 주고, 상자째로
   가장자리를 흐려 사이트 바탕에 녹인다. 상자와 그림이 같은 색이라
   흐려지는 동안 경계가 생기지 않는다.
   (screen 겹치기도 해 봤지만 두 검정이 더해져 오히려 밝아졌다) */
.brandlock {
  max-width: 460px; margin: var(--s6) auto var(--s3);
  line-height: 0; background: #02060F;
  /* 네 변만 좁게 흐린다. 둥근 그라디언트로 하면 흐려지는 띠가 상자 밖에 생겨
     안쪽은 그대로 각져 보였다(실제로 그랬다). 가로·세로 두 장을 겹쳐 쓴다.
     가로는 6% 만 흐린다 — 로고 글자가 오른쪽 끝까지 닿아 있어서다. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.brandlock img { width: 100%; height: auto; }
@media (max-width: 520px) { .brandlock { max-width: 330px; margin-top: var(--s4); } }

/* ── 머리말 심벌 ──────────────────────────────────────────────────────
   회사 로고에서 선물상자만 잘라 낸 그림을 그대로 쓴다.
   상자가 네모를 거의 꽉 채우므로, 흐리게 지우면 리본 끝이 같이 지워진다.
   대신 모서리만 둥글려 앱 아이콘처럼 보이게 한다 — 그림은 손대지 않는다. */
.brand-mark { border-radius: 7px; }

/* ── 움직이는 선물 ────────────────────────────────────────────────────
   정지 그림 위에 겹쳐 그린다. 못 틀면 아래의 정지 그림이 그대로 보인다 —
   그래서 빈 칸이 되는 일이 없다. */
.gimg .giftanim {
  position: absolute; inset: 0; z-index: 1;
  display: block; width: 100%; height: 100%;
  /* 그림 위에 덮는 겹이라 클릭을 먹으면 안 된다 — 아래의 하트·재생 단추가 눌려야 한다 */
  pointer-events: none;
}
.gimg .giftanim svg, .gimg .giftanim video { width: 100% !important; height: 100% !important; display: block; }
/* 영상 스티커는 비율이 다를 수 있다. 늘여서 채우지 않는다. */
.gimg .giftanim video { object-fit: contain; }

/* 목록 카드의 「움직임」 표시 — 이 선물은 상세에서 움직인다는 뜻.
   ★ 오른쪽 **위**다(2026-11-13). 오른쪽 아래는 마켓 로고와 찜 하트의 자리가 됐고,
     하트가 내려가면서 오른쪽 위가 비었다. */
.gimg .animflag {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2); background: rgba(9, 12, 19, .72);
  border: 1px solid var(--line-2); backdrop-filter: blur(4px);
}

/* 움직임을 줄여 둔 손님에게만 보이는 재생 단추 */
.gimg .animplay { display: none; }
.gimg.anim-paused .animplay {
  display: grid; place-items: center;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  color: var(--text); background: rgba(9, 12, 19, .74);
  border: 1px solid var(--line-3); backdrop-filter: blur(6px);
}
.gimg.anim-paused .animplay:hover { background: rgba(9, 12, 19, .9); }

/* ── TON 값 표시 ──────────────────────────────────────────────────────
   마크 → 숫자 → 단위. 한 덩이로 묶어 줄바꿈에서 갈라지지 않게 한다.
   마크는 ton.org 공식 심벌이라 색을 바꾸지 않는다(남의 상표다). */
.tonprice {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; line-height: 1.1;
}
.tonprice .tonmark { flex-shrink: 0; display: block; }
.tonprice b { font-weight: 800; font-variant-numeric: tabular-nums; }
.tonprice .u {
  font-size: .74em; font-weight: 700; color: var(--text-3);
  letter-spacing: .02em; margin-left: -1px;
}
/* 매물 상세의 큰 값 */
.tonprice.is-big { gap: 8px; }
.tonprice.is-big .u { font-size: .5em; }

/* 값이 들어가던 자리들이 기대하던 모양을 그대로 유지한다 */
.gcard .gprice, .pitem .p { display: flex; align-items: center; }
.price-big .tonprice b { font-size: inherit; letter-spacing: -.03em; }


/* ════════════════════════════════════════════════════════════════════════
   거래 정직성 (2026-08-25)

   판매자가 완료를 안 찍거나 가짜로 찍는 문제에 대응하며 붙은 화면들이다.
   이 구역의 색 규칙 한 가지 — **사이트 밖 거래(offsite)에 경고색을 쓰지 않는다.**
   상대가 회원이 아닌 일은 흔하고, 그것을 벌주면 가장 정직한 판매자가
   가장 손해를 본다. 경고색은 이의제기(disputed)에만 쓴다.
   ════════════════════════════════════════════════════════════════════════ */


/* ── pages-admin.js 에서 온 것 ───────────────────────────────────── */
/* ── 관리자 · 거래 점검 ─────────────────────────────────────────────
   판정하는 화면이 아니다. 그래서 붉은 경보색을 쓰지 않는다 —
   빨간 줄이 늘어서면 운영자가 그것을 「사기꾼 목록」으로 읽는다. */
.tsecs { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }

.tsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tsec[open] { border-color: var(--line-2); }

/* 접기는 <details>/<summary> 라 자바스크립트가 없다 (CSP script-src 'self') */
.tshd {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  cursor: pointer; list-style: none; user-select: none;
}
.tshd::-webkit-details-marker { display: none; }
.tshd:hover { background: var(--surface-2); }
.tshd:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.tschev { display: inline-flex; line-height: 0; color: var(--text-3); flex-shrink: 0;
  transition: transform var(--t-base) var(--ease-out); }
.tsec[open] .tschev { transform: rotate(90deg); }
.tsi { display: inline-flex; line-height: 0; color: var(--text-3); flex-shrink: 0; }
.tst { flex: 1 1 auto; min-width: 0; font-size: var(--f-md); font-weight: 800; }

/* 셀 것이 있을 때만 숫자를 적는다. 0 을 크게 띄우면 그것도 하나의 주장이 된다. */
.tsn { flex-shrink: 0; min-width: 24px; padding: 2px 8px; text-align: center;
  border-radius: var(--r-full); background: var(--surface-3); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: var(--f-xs); font-weight: 800; }
.tsz { flex-shrink: 0; color: var(--text-4); font-size: var(--f-xs); font-weight: 700; }

.tsbody { display: flex; flex-direction: column; gap: var(--s3); padding: 0 var(--s5) var(--s5); }
.tshint { max-width: 78ch; margin: 0; color: var(--text-3); font-size: var(--f-sm); line-height: 1.6; }
.tsempty { margin: 0; color: var(--text-4); font-size: var(--f-sm); }

.tsitem { padding: var(--s4); }
.tsnote { font-size: var(--f-sm); line-height: 1.6; overflow-wrap: anywhere; }

/* 오래된 것에 눈이 가되 겁주지 않는다 — 배경을 깔지 않고 글자색 하나만 바꾼다 */
.tsday { color: var(--text-2); font-weight: 700; }
.tsday.is-long { color: var(--warn); }
.tsratio { color: var(--text-2); font-weight: 700; }

.tsfoot { margin-top: var(--s5); font-size: var(--f-sm); }

/* 폰 — 표는 .tblwrap(overflow-x:auto) 안에 있어 페이지가 옆으로 밀리지 않는다.
   375px 에서 여섯 구역을 모두 펼치고 재어 scrollWidth 375 를 확인했다. */
@media (max-width: 640px) {
  .tshd { gap: var(--s2); padding: var(--s3) var(--s4); }
  .tsbody { padding: 0 var(--s4) var(--s4); }
  .tst { font-size: var(--f-sm); }
}


/* ── pages-user.js 에서 온 것 ───────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════
   거래 숫자 · 거래 확인  (pages-user.js)
   ══════════════════════════════════════════════════════════════════ */

/* ── 거래 숫자 판 ────────────────────────────────────────────────────
   큰 숫자 넷을 가로로 늘어놓던 것을 한 줄씩으로 바꾼다. 숫자보다
   "무엇을 센 숫자인가" 가 훨씬 길어서, 가로로 늘어놓으면 설명이 들어갈
   자리가 없다 — 그래서 예전 판에는 설명이 아예 없었고, 그 자리가 비어
   있는 동안 손님은 맨 앞 숫자 하나로 사람을 판단했다. */
/* class="tstats panel" — 판매자 프로필의 거래 숫자 판.
   SOLD 화면의 #tstats 와 이름이 겹치므로 .panel 까지 붙여 좁힌다. */
.tstats.panel { display: grid; grid-template-columns: none; gap: var(--s3); padding: var(--s4) var(--s5); }
.tstats-hd { display: grid; gap: 2px; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.tstats-hd b { font-size: var(--f-md); }
.tstats-hd .muted2 { font-size: var(--f-xs); line-height: 1.5; }

/* 2026-11-16 — 숫자는 한 줄 칸(.ts-row · 2~4칸 · 칸 사이 머리카락 선), 뜻은 그 아래 「숫자 뜻 보기」(.ts-why · <details>).
   넓은 화면(≥1024)에서는 뜻을 접지 않는다 — 아래 「화면 문법 C」 ①. */
.tstats .ts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tstats .ts-row.ts-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tstats .ts-row.ts-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 이름표가 두 줄로 접힌 칸이 있어도 숫자는 칸 바닥 — 한 줄의 숫자가 같은 높이에 선다 */
.tstats .ts { display: grid; grid-template-rows: 1fr auto; gap: 2px; min-width: 0; padding: 0 var(--s3); }
.tstats .ts:first-child { padding-left: 0; }
.tstats .ts + .ts { border-left: 1px solid var(--line); }
.tstats .ts-lb { font-size: var(--f-xs); font-weight: 600; color: var(--text-3); line-height: 1.4; }
.tstats .ts > b { font-size: var(--f-xl); font-weight: 800; line-height: 1.15; color: var(--text); }
.tstats .ts-hint { font-size: var(--f-xs); color: var(--text-3); line-height: 1.55; }

/* 자체 신고 · 확인 대기는 벌점이 아니다. 경고색(--warn/--danger)을 쓰지 않는다 —
   색이 붙는 순간 손님은 "문제 있는 판매자" 로 읽는다. 다른 종류의 숫자라는
   것만 옅은 숫자로 알린다(크기는 같다 — 한 줄의 숫자가 같은 높이에 선다). */
.tstats .ts-self > b, .tstats .ts-wait > b { color: var(--text-3); }

/* 숫자 뜻 — 접는 칸. 요약 줄은 손가락 자리 44px */
.tstats .ts-why { border-top: 1px solid var(--line); }
.tstats .ts-why > summary {
  display: flex; align-items: center; gap: var(--s1); min-height: 44px; margin-bottom: calc(var(--s3) * -1);
  font-size: var(--f-sm); font-weight: 700; color: var(--text-2); cursor: pointer; list-style: none;
}
.tstats .ts-why > summary::-webkit-details-marker { display: none; }
.tstats .ts-why > summary::after { content: '▾'; font-size: .85em; color: var(--text-4); }
.tstats .ts-why[open] > summary { margin-bottom: 0; }
.tstats .ts-why[open] > summary::after { content: '▴'; }
.tstats .ts-why > summary:hover { color: var(--text); }
.tstats .ts-why > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
/* 뜻은 이름표 · 값 한 벌(.kv 와 같은 짜임 — 이름표 칸은 가장 긴 이름표 폭 · 뜻 글은 같은 x 에서 시작) */
.tstats .ts-hints { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s3); margin: 0; align-items: baseline; }
.tstats .ts-h { display: contents; }
.tstats .ts-h dt { font-size: var(--f-xs); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tstats .ts-h dd { margin: 0; }

/* ── 거래 확인 카드 — 무엇을 묻는지 / 무엇을 / 누구와 ────────────────
   카드 한 장이 위에서 아래로 질문 → 매물 → 상대 → 단추 차례로 읽힌다.
   상대 칸이 단추 바로 위에 오는 것이 중요하다. 눌리기 직전에 보이는 것이
   "이 사람이 누구인가" 여야 한다. */
.cfask { display: flex; align-items: flex-start; gap: var(--s3); }
.cfask .cfask-ic {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-2); line-height: 0;
}
.cfask.is-seller .cfask-ic { background: var(--accent-soft); color: var(--accent); }
.cfask b { font-size: var(--f-base); }
.cfask .sub { font-size: var(--f-xs); color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.cfask .cf-when { flex-shrink: 0; font-size: var(--f-xs); color: var(--text-4); }

.cfother {
  display: grid; gap: var(--s3); padding: var(--s3);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.cfother .cfwho { flex-wrap: wrap; }
.cfother .cfwho .btn { flex-shrink: 0; }
.cfnums { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cfnums span {
  flex: 1 1 120px; display: flex; align-items: baseline; gap: 6px;
  padding: 8px var(--s3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: var(--f-xs); color: var(--text-3);
}
.cfnums b { font-size: var(--f-lg); font-weight: 800; color: var(--text); }
.cfnote { font-size: var(--f-xs); color: var(--text-3); line-height: 1.55; }

/* ── 「아니에요」 두 갈래 창 ─────────────────────────────────────────
   무엇을 고르느냐에 따라 남는 기록이 다르다. 두 갈래를 같은 크기로 놓고
   각자의 결과를 그 아래에 적는다. 하나를 작게 만들면 그쪽이 덜 중요한
   선택으로 읽힌다. */
.cfno .cfpick {
  display: flex; gap: var(--s3); padding: var(--s3) var(--s4); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color .13s var(--ease), background .13s var(--ease);
}
.cfno .cfpick:hover { border-color: var(--line-3); }
.cfno .cfpick input { flex-shrink: 0; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--accent); }
.cfno .cfpick-bd { display: grid; gap: 3px; min-width: 0; }
.cfno .cfpick-bd b { font-size: var(--f-md); }
.cfno .cfpick-bd .sub { font-size: var(--f-xs); color: var(--text-3); line-height: 1.55; }
.cfno .cfpick:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
/* .field 가 display:flex 라서 hidden 만으로는 안 감춰진다 */
.cfno .field[hidden] { display: none; }

/* ── 폰 (375px 에서 가로로 넘치지 않게) ─────────────────────────────
   .mystats 의 최소 폭은 위쪽 「판매자 프로필」 구역에서 .sellerside 와 한 줄로
   묶어 두었고, 폰에서 0 으로 푸는 것도 거기서 함께 한다 — 여기서는 안 적는다. */
@media (max-width: 640px) {
  .tstats.panel { padding: var(--s4); }
  .cfask .cf-when { display: none; }
  .cfnums span { flex: 1 1 100%; }
}


/* ── pages-market.js 에서 온 것 ───────────────────────────────────── */

/* 설명 줄(.selfhint)의 모양은 위쪽 「입력」 구역에서 .hint 와 한 줄로 묶어 정한다. */

/* ── 두 갈래 고르기 (판매완료 처리 창) ──────────────────────────── */
.pick {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pick:hover { border-color: var(--line-3); }
.pick input { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.pick .pk { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.pick .pk b { font-size: var(--f-md); color: var(--text); }
.pick .pk span { font-size: var(--f-xs); color: var(--text-3); line-height: 1.5; }
.pick.on { background: var(--accent-soft); border-color: var(--accent-line); }
/* 고른 갈래에 딸린 입력칸 — 어느 갈래에 속한 칸인지 들여쓰기로 보인다 */
.pickbody { padding-left: 28px; }
@media (max-width: 420px) { .pickbody { padding-left: 0; } }

/* ── 원본 다시 확인 결과 (판매자 본인에게만 보이는 창) ──────────── */
.srccmp { display: flex; flex-direction: column; gap: var(--s2); }
.srccmp > div { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.srccmp > div > span { min-width: 62px; font-size: var(--f-xs); color: var(--text-3); }

/* ── SOLD — 판매완료 내역 ─────────────────────────────────────────────
   한 줄에 「무엇이 · 얼마에 · 누구에서 누구로 · 언제」 가 다 보이게 한다.
   카드로 만들지 않은 이유: 이것은 구경거리가 아니라 **기록**이라,
   여러 건을 위아래로 훑으며 견주는 것이 목적이다. */
/* SOLD 화면 위의 숫자 세 칸. 첫 화면의 .stats 와 같은 짜임새로 맞춘다. */
#tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
/* 누적 거래액 칸의 값(◆ 1,234 TON)도 다른 칸의 숫자와 같은 크기 · 색이다(2026-11-16 — 혼자 작고 흐렸다) */
#tstats .stat b .tonprice, #tstats .stat b .tonprice b { font-size: inherit; color: inherit; font-weight: inherit; }
#tstats .stat b .tonprice .u { font-size: var(--f-xs); }
#tstats .stat b { max-width: 100%; min-width: 0; }
#tstats .stat b .tonprice { flex-wrap: wrap; justify-content: center; row-gap: 0; max-width: 100%; }

.tradelist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
             border-radius: var(--r-md); overflow: hidden; }
.traderow {
  display: grid; align-items: center; gap: var(--s3);
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 320px) auto auto;
  padding: 10px var(--s4); background: var(--surface);
  transition: background-color var(--t-fast) var(--ease-out);
}
.traderow:hover { background: var(--surface-2); }
.traderow .tr-img { display: block; width: 56px; }
.traderow .tr-img .gimg { border-radius: var(--r-sm); }
.traderow .tr-nm { display: block; font-weight: 700; font-size: var(--f-md);
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traderow .tr-nm .num { color: var(--text-3); }
.traderow .gtraits { margin-top: 2px; }

.traderow .tr-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.traderow .tr-p { display: inline-flex; align-items: center; gap: 5px; min-width: 0;
                  font-size: var(--f-sm); color: var(--text-2); }
.traderow .tr-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traderow .tr-p:hover { color: var(--text); }
.traderow .tr-arrow { color: var(--text-4); flex-shrink: 0; line-height: 0; }
.traderow .tr-price { white-space: nowrap; }
.traderow .tr-when { white-space: nowrap; font-size: var(--f-xs); }

/* 태블릿 — 상대 줄을 아래로 내린다 */
/* 좁아지면 등급 배지를 뺀다 — 배지 때문에 이름이 「T…」 로 잘리면
   누가 누구와 거래했는지가 안 보인다. 이 화면의 핵심은 이름이다. */
@media (max-width: 1100px) { .traderow .tr-p .badge { display: none; } }

@media (max-width: 900px) {
  .traderow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas:
              "img main price" "img who when"; row-gap: 4px; }
  .traderow .tr-img { grid-area: img; width: 48px; }
  .traderow .tr-main { grid-area: main; }
  .traderow .tr-who { grid-area: who; }
  .traderow .tr-price { grid-area: price; justify-self: end; }
  .traderow .tr-when { grid-area: when; justify-self: end; }
}
@media (max-width: 520px) {
  /* 2026-11-16 — 2 + 1 칸(마지막 칸이 혼자 한 줄)이 아니라 같은 세 칸 · 숫자를 한 단 줄인다 */
  #tstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  #tstats .stat { padding: var(--s3) var(--s2); }
  #tstats .stat b { font-size: var(--f-lg); }
  #tstats .stat > span { font-size: var(--f-xs); }
  .traderow .gtraits { display: none; }   /* 좁으면 특성보다 값·상대가 먼저다 */

  /* ★ 상대 줄에 **한 줄을 통째로** 준다.
     예전에는 값(nowrap)과 시각이 자기 폭을 먼저 가져가서, 320px 에서 상대
     이름 몫이 0px 이 됐다 — 화살표 양쪽이 통째로 비어 있었다(재현했다).
     값이 클수록(글자가 길수록) 더 심하게 지워져서, 정작 가장 궁금한 고가
     거래의 상대가 가장 안 보였다. 이 화면의 핵심은 「누가 누구와」다. */
  .traderow { grid-template-areas: "img main price" "img when when" "who who who"; }
  .traderow .tr-who { grid-area: who; justify-self: start; padding-top: 2px; }
  .traderow .tr-p span { min-width: 0; }
}

/* ── 선물 카드의 배경 두 겹 ───────────────────────────────────────────
   텔레그램 선물 그림은 배경 그라디언트 · 심볼 무늬 · 모델 세 겹이다.
   움직이는 파일(.tgs)에는 모델밖에 없어 배경과 심볼이 사라졌었다.
   앞의 두 겹을 여기서 다시 깐다. 정지 그림에는 이미 배경이 구워져 있으므로,
   배경을 따로 깐 매물에서는 정지 그림의 바탕이 겹쳐 보이지 않게 섞어 준다. */
.gimg .giftbd {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
}
/* 심볼 무늬는 **모양(알파)** 으로 오려 낸다.
   텔레그램이 내려주는 심볼 파일은 짙은 색 그림이라, 밝기로 오려 내는
   기본 방식(mask-type: luminance)에서는 새까맣게 = 안 보이는 것으로 읽혀
   무늬가 통째로 사라졌다. 텔레그램도 색을 부어 모양으로만 오려 쓴다.
   ※ CSP 때문에 style="" 을 못 쓰므로 규칙으로 둔다. */
.giftbd mask { mask-type: alpha; }
/* 정지 그림(텔레그램 og:image)에는 배경·심볼·모델 세 겹이 이미 구워져 있고,
   늘 정사각형이다. 그래서 배경을 다시 그린 매물에서는 **상자를 꽉 채워야** 한다.
   76% 로 가운데 놓으면 네 변에서 12% 안쪽에 정사각형 자국이 남는다 —
   사장님이 사진으로 지적하신 "뒤에 가려진 흰 상자" 가 바로 이것이었다.
   (76% 는 배경이 없는 데모 그림처럼 여백이 필요한 것들을 위한 값이다) */
.gimg > img.has-bd { position: relative; z-index: 1; width: 100%; height: 100%;
                     /* 상자보다 작아질 수 있어야 한다. 없으면 그림의 원래 크기가
                        최소폭이 되어 좁은 폰에서 상세 화면을 밀어낸다
                        (320px 에서 12px 넘쳤다 — 실측). */
                     min-width: 0; }

/* 움직임이 **실제로 돌기 시작하면**(gift-anim.js 가 data-anim-on="done" 을 찍는다)
   그 아래 정지 그림은 감춘다. Lottie 에는 모델만 들어 있어 배경이 비치는데,
   우리가 그린 배경(.giftbd)과 정지 그림에 구워진 배경이 겹쳐 두 겹이 된다.

   ★ has-bd 인 것만 감춘다 — 배경을 안 그린 매물에서 정지 그림까지 감추면
     Lottie 뒤가 .gimg 기본 그라디언트가 되어 색이 어긋난다.
   ★ 못 틀면 animOn 이 'done' 이 아니므로 이 규칙이 안 걸린다.
     즉 실패해도 정지 그림이 그대로 남는다 — 빈 칸이 되지 않는다. */
.gimg[data-anim-on="done"] > img.has-bd { visibility: hidden; }

/* ============================================================================
   마감 — 깊이 · 첫 화면 바탕 · 로그인 · 창 (2026-11-09)

   색은 하나도 바꾸지 않았다(사장님 결정: 지금 색감 유지).
   바꾼 것은 **빛이 어디서 오는가** 하나다. 어두운 화면에서 상자가 전부
   같은 색이면 종이 한 장처럼 납작해 보인다. 위쪽 모서리에만 아주 옅은
   빛을 얹으면 "빛이 위에서 온다"는 느낌이 생겨 상자가 떠 보인다.
   ========================================================================== */

/* ── ① 면의 깊이 ───────────────────────────────────────────────────
   box-shadow 가 아니라 **배경 그라디언트**로 준다 — 그림자로 주면
   손을 올렸을 때의 그림자(motion.css)와 서로 덮어써서 깜빡인다.
   ★ .livebar 는 여기에 넣지 않는다. 제 그라디언트를 이미 쓰고 있어
     넣으면 그것이 통째로 지워진다. */
.panel, .card, .gcard, .scard, .rvcard, .stat, .modal, .sugg, .toast {
  background-image: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 72px);
}

/* ── ② 첫 화면 바탕 그림 ───────────────────────────────────────────
   글자 뒤에 아주 옅게 깔린다. 네 변을 둥글게 지워서 네모난 자국이 안 남는다.
   ★ 그림(9KB)을 못 받아도 위쪽 `.hero::before` 의 빛이 그대로 남는다 —
     화면이 비지 않는다.
   ★ 좌우로 삐져나가게 하지 않는다. 예전에 그렇게 했다가 문서 폭이 늘어나
     폰에서 가로로 밀렸다(위 .hero::before 주석 참고). */
.hero-bg {
  position: absolute; inset: -40px 0 auto; width: 100%; height: 470px;
  /* ★ object-position 을 빼면 안 된다. 그림의 빛줄기는 **맨 위**에 있는데
     기본값(가운데)으로 자르면 그 부분이 통째로 잘려 나가 아무것도 안 보인다
     (실제로 처음에 그래서 화면에 아무 변화가 없었다). */
  object-fit: cover; object-position: 50% 0;
  z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 86% 86% at 50% 22%, #000 40%, transparent 82%);
          mask-image: radial-gradient(ellipse 86% 86% at 50% 22%, #000 40%, transparent 82%);
}
@media (max-width: 860px) { .hero-bg { height: 330px; inset: -24px 0 auto; } }

/* 큰 검색창 — 첫 화면에서 가장 먼저 눈이 가야 할 곳 */
.bigsearch input {
  background-image: linear-gradient(180deg, var(--sheen-5), rgba(255, 255, 255, 0) 60%);
}
.bigsearch input:focus { box-shadow: var(--sh-2), 0 0 0 3px var(--accent-soft); }

/* 숫자 칸 — 넓은 화면에서는 숫자를 한 치수 키운다(이 줄이 사이트의 규모다) */
@media (min-width: 861px) { .stat b { font-size: var(--f-3xl); } }

/* ── ③ 로그인 · 가입 — 두 칸 ───────────────────────────────────────
   1100px 짜리 화면에서 440px 상자 하나만 덩그러니 떠 있어서 좌우가 통째로
   비어 보였다. 왼쪽에 그림 칸을 세우고 오른쪽에 글자 칸을 둔다.
   ★ 좁은 화면(≤900px)에서는 그림 칸을 통째로 감춘다 — 폰에서 그림을 먼저
     보여 주면 로그인 칸이 한 화면 아래로 밀린다. */
.authwrap { display: grid; gap: var(--s6); align-items: stretch; margin: var(--s7) 0 var(--s9); }
.authwrap .authbox { margin: 0; max-width: 460px; }
.authart { display: none; }

@media (min-width: 901px) {
  /* 두 칸의 키를 맞춘다 — 가입 화면은 글자 칸이 길어서, 가운데 맞춤으로 두면
     그림 칸만 짧게 떠 보인다. stretch 면 긴 쪽에 맞춰 함께 늘어난다. */
  .authwrap { grid-template-columns: minmax(0, 1fr) minmax(430px, 470px); gap: var(--s8); align-items: stretch; }
  /* 로고는 두 칸 위에 선다. 460px 그대로 두면 머리가 너무 무거워 보인다. */
  .wrap > .brandlock { max-width: 300px; margin: var(--s6) auto var(--s2); }
  .authart {
    display: block; position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    min-height: 540px; background: var(--bg-2);
  }
  /* 그림은 칸을 꽉 채우고, 글자가 얹히는 왼쪽 아래는 어둡게 눌러 둔다 */
  .authart > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .authart::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(9, 12, 19, 0) 34%, rgba(9, 12, 19, .78) 78%, rgba(9, 12, 19, .92) 100%);
  }
  .authart-in {
    position: absolute; inset: auto var(--s7) var(--s7); z-index: 1;
    display: flex; flex-direction: column; gap: var(--s4);
  }
  .authart-in h2 { font-size: var(--f-2xl); letter-spacing: -.02em; }
  .authart-pts { display: flex; flex-direction: column; gap: var(--s3); }
  .authart-pts li { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--f-md); color: var(--text-2); }
  .authart-pts .pi { flex-shrink: 0; line-height: 0; color: var(--accent); margin-top: 1px; }
}

/* ── ④ 창(모달)·토스트 ─────────────────────────────────────────────
   창이 뜨면 뒤가 흐려져야 "지금은 이 창의 차례"라는 것이 읽힌다. */
.ovl {
  background: var(--overlay-2);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.modal { box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 255, 255, .03); }
.modal-hd h3 { letter-spacing: -.01em; }

/* 폰에서는 아래에서 올라오는 시트다. 손잡이 하나를 얹어 "내려서 닫는 것"으로 읽히게. */
@media (max-width: 860px) {
  .modal::before {
    content: ''; flex-shrink: 0; width: 38px; height: 4px; border-radius: 2px;
    background: var(--line-3); margin: 10px auto 0;
  }
  .modal-hd { padding-top: var(--s4); }
}

/* ── ⑤ 커뮤니티 목록 ─────────────────────────────────────────────────
   2026-11-14 — 두 칸 카드 목록을 걷고 한국 게시판의 줄 목록(.cml-board)과 기프트자랑 격자(.cml-gal)로 바꿨다
   (규칙은 위 「pages-community.js 에서 온 것」 칸). 내정보의 「내 글 · 북마크」가 쓰는 .plist 는 그대로다. */

/* ── ⑥ 글 상세 — 글이 바탕 위에 떠 있지 않게 ───────────────────────
   커뮤니티 글은 사이트에서 유일하게 **아무 상자에도 담기지 않은** 화면이었다.
   다른 화면이 전부 상자 위에 서 있는데 이 화면만 맨바탕이라 덜 만든 곳처럼 보인다.
   ★ 읽는 폭(820px)은 그대로 둔다 — 글은 폭이 넓다고 읽기 쉬워지지 않는다.
   ★ 폰에서는 상자를 두르지 않는다. 좁은 화면에서 좌우 여백을 두 겹으로
     쓰면 한 줄에 들어가는 글자가 눈에 띄게 줄어든다. */
@media (min-width: 861px) {
  .cml-art, .cml-talkbox {
    padding: var(--s6) var(--s7);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
    background-image: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 72px);
  }
  /* 상자 안에서는 글쓴이 줄 아래 가로선이 상자 폭을 꽉 채우게 둔다 */
  .cml-art .cml-by { margin: 0 calc(var(--s7) * -1); padding: 0 var(--s7) var(--s4); }
}

/* ── ⑦ 매물 상세 · 커뮤니티 마감 (2026-11-09) ──────────────────────
   위 ① 의 깊이 체계에서 빠져 있던 상자들을 같은 규칙으로 끌어온다.
   색은 하나도 새로 만들지 않았다 — 전부 같은 흰색 4.5% 다. */

/* 키가 넉넉한 상자는 ① 과 같은 72px 정지점 */
.guidecard, .ld-act {
  background-image: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 72px);
}

/* 키가 작은 상자는 정지점을 비율로 — 72px 로 두면 상자 전체가 균일하게 밝아진다 */
.cmt.cml-cmt .txt.cml-bubble, .gpv, .stickycta .sc-in {
  background-image: linear-gradient(180deg, var(--sheen-4), rgba(255, 255, 255, 0) 86%);
}
/* 지금 답하고 있는 댓글은 이미 포인트 바탕이라 빛을 겹치지 않는다 */
.cmt.cml-cmt.is-target .txt.cml-bubble { background-image: none; }

/* ── 댓글 쓰는 칸 — 이름표(.cml-write)만 있고 규칙이 한 줄도 없었다 ──
   그래서 바탕도 테두리도 여백도 0 이라, 상자 안에 들어 있는 다른 칸들과
   달리 글 아래에 맨몸으로 붙어 있었다. */
.cml-write {
  padding: var(--s4);
  background-color: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, var(--sheen), rgba(255, 255, 255, 0) 72px);
}
/* 상자가 생겼으니 글 칸은 한 단계 가라앉힌다.
   ★ :not(:focus) 가 꼭 필요하다 — 없으면 「지금 여기에 쓰고 있다」는 표시
     (.textarea:focus)를 덮어 지운다. 키보드로 쓰는 분이 길을 잃는다. */
.cml-write .textarea:not(:focus) { background: var(--bg-2); }

/* 댓글 사이가 16px 뿐이라 누가 어디까지 쓴 것인지 뭉쳐 보였다 */
.cml-cmts { gap: var(--s4); margin-top: var(--s2); }

/* ── 「작성자」 딱지 ────────────────────────────────────────────────
   이름표(.cml-au)에 규칙이 없어 「데모 자료」 배지의 무채색을 그대로 쓰고 있었다.
   같은 줄의 다른 사람에게는 색 있는 등급 배지가 붙으므로, 정작 가장 중요한
   「이건 글쓴이가 쓴 댓글이다」가 그 줄에서 가장 안 보이는 글자였다. */
.cmt.cml-cmt .cml-au {
  color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line);
}

/* ── 가운데점 구분자 ───────────────────────────────────────────────
   --line-3 는 **선 색**이다. 글자로 쓰면 1.80~1.91:1 로 사실상 안 보인다.
   이 점들은 장식이 아니라 「글 12개 · 최근 글 · 조회 · 댓글」을 갈라 읽게
   하는 구조 표시다. 이미 재어 둔 --text-4 를 쓴다(새 색 없음). */
.cml-sep { color: var(--text-4); }
.cty + .dv { color: var(--text-4); }

/* ── 좁은 폰에서 접히지 못하던 두 줄 ───────────────────────────────
   CLAUDE.md 「좁은 폰(320px)에서 한 줄이라도 안 접히면 화면이 밀린다」.
   · (「이 판매자의 다른 매물」의 세로 줄 .gcard-row 는 2026-11-14 에 카드 한 줄 .ld-rail 로 바뀌어 규칙을 뺐다)
   · .gpv — 글·댓글 속 매물 카드. 320px 에서 이름이 87px 칸에 다섯 줄로
     쌓여 카드 키가 155px 까지 늘어났다(실측). */
.gpv { flex-wrap: wrap; }
.gpv .grow { min-width: 8em; }

/* ── 딱지 글자 대비 ────────────────────────────────────────────────
   tokens.css 에 적힌 측정값(4.70~5.42:1)은 #111624·#161C2C 위에서 잰 것이고
   --surface-3(#1C2436) 는 재지 않았다. 거기서 다시 재면 4.29~4.30:1 로 미달이다.
   글자색은 그대로 두고 **바탕만 한 단계 내린다** — 둘 다 5.00:1 이 된다. */
.st-SOLD      { background: var(--surface); }
.st-CANCELLED { background: var(--surface); }
.badge-mock   { background: var(--surface); border-color: var(--line-2); }
/* 그림 위에 얹히는 딱지는 뒤가 그림이라 바탕 손질이 안 먹는다 — 글자를 올린다 */
.gimg > .st-SOLD, .gimg > .st-CANCELLED { color: var(--text-2); }

/* ── 마감 ⑧ — 판매자 프로필 · 내 정보 (2026-11-09) ──────────────────
   재어 보니 두 화면에 **말없이 끊기는 목록**과 **손가락이 닿지 않는 단추**가
   남아 있었다. 색과 짜임새는 그대로 두고 그 둘만 고친다. */

/* ① 「더 보기」 — 「후기 39개」라고 적어 놓고 20개에서 끝나던 자리.
      목록 아래 가운데에 두고, 몇 개가 남았는지를 단추 안에 적는다. */
.morebar { display: flex; justify-content: center; margin-top: var(--s5); }
.morebar .btn { min-height: 44px; padding: 0 var(--s6); gap: var(--s2); }
.morebar .mb-rest { font-size: var(--f-xs); color: var(--text-4); font-weight: 700; }
.morebar .btn:hover .mb-rest { color: var(--text-3); }
.morebar .btn:disabled { opacity: .55; cursor: progress; }

/* ② 폰에서 프로필 머리칸 단추가 36px 였다. 「로그아웃」·「비밀번호 변경」이
      서로 8px 떨어져 붙어 있어, 겨눠 누르면 옆 것이 눌렸다.
      ★ .btn-sm 전체를 올리지 않는다 — 카드 안의 작은 단추까지 같이 커진다. */
@media (hover: none) {
  .profile-hd .btn { min-height: 44px; }
  /* 「신고」는 그림만 있는 단추라 폭이 32px 로 따로 정해져 있다 —
     키만 올리면 32x44 가 되어 여전히 빗나간다 */
  .profile-hd .btn-icon.btn-sm { width: 44px; }
  .profile-hd .row.wrapx { gap: var(--s3); }
}

/* ③ 평점 상자 안쪽 여백 — 내정보도 같은 상자를 쓰게 되면서 두 화면이
      같은 자리에서 같은 키로 선다. */
.ratebox.trustbox { padding: var(--s5); }

/* ── 첫 화면 홍보 배너 줄 (2026-11-12) ────────────────────────────────
   운영자가 관리자 화면에서 넣은 배너를 옆으로 미는 줄.
   검색창 바로 아래에 놓이므로, 매물 카드보다 **작고 조용해야** 한다 —
   첫 화면이 광고판처럼 보이면 손님이 그대로 나간다. */
.brail { position: relative; margin: 0 0 var(--s7); }
/* ★ 머리말·아래 칸과 **딱 붙인다**(운영자 결정 · 2026-11-13).
     첫 화면은 배너가 화면 맨 위에 오므로 .page 의 위쪽 여백(32px)이 머리말과 배너
     사이에 검은 띠로 남았다. 배너로 시작하는 화면에서만 그 여백을 뺀다 —
     다른 화면(마켓·시세 …)의 제목 위 여백은 그대로다.
     아래쪽도 같은 까닭으로 0. 점 줄(.bs-dots)이 있을 때는 점 줄이 아래 자리를 맡는다. */
.page:has(> .brail:first-child) { padding-top: 0; }
.page > .brail:first-child { margin-bottom: 0; }
/* 배너 바로 아래 「안전 거래 수칙」 칸도 위 여백 없이 붙인다(실시간 줄이 숨어 있을 때) */
.brail + .wrap > .livebar[hidden] + .safety { margin-top: 0; }

.br-track {
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.br-track::-webkit-scrollbar { display: none; }

/* 한 장이 화면 폭을 꽉 채우는 큰 배너 — 끝에서 끝까지(2026-11-12) */
.br-card.bslide {
  position: relative; flex: 0 0 100%; width: 100%; scroll-snap-align: start;
  display: block; overflow: hidden;
  aspect-ratio: 3 / 1; color: inherit; text-decoration: none;
  background: var(--surface-2);
}
.bs-img, .bs-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-img img { object-fit: cover; display: block; }
/* ★ 어떤 그림이 와도 글자가 읽히게 어둡게 깐다.
   운영자가 올리는 그림을 우리가 고를 수 없으므로 이 겹이 꼭 있어야 한다. */
.br-card.bslide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* 2026-11-13 글자를 위로 올렸으므로 **위쪽을 더 어둡게** 깐다(아래는 단추가 제 바탕을 가진다) */
  background: linear-gradient(180deg, rgba(9,12,19,.58) 0%, rgba(9,12,19,.22) 50%, rgba(9,12,19,.42) 100%);
}
/* 글자는 **위쪽 가운데** — 보여 주신 시계 거래소 배너와 같은 자리다(2026-11-13).
   아래쪽은 「자세히보기」 단추 자리로 비워 둔다. */
.bs-txt {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: var(--s2); padding: clamp(28px, 9%, 84px) var(--s8) var(--s7); text-align: center;
}
/* 아래쪽 가운데 단추 — 밝은 반투명 네모(보여 주신 「자세히보기」 모양).
   배너 전체가 링크라 이것은 <span> 이다(링크 안에 링크를 두지 않는다). */
.bs-cta {
  /* ★ left:50% + translate 로 가운데 두면, 절대 위치 상자가 **폭의 절반**만 쓸 수 있다고
       보고 글을 좁게 접는다(폰에서 「처음이신가요?」가 세 줄로 찌그러졌다).
       그래서 좌우를 다 열고(left/right 0) 가운데 맞춤은 margin auto 로 한다. */
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 8%, 60px); z-index: 1;
  width: max-content; margin: 0 auto;
  min-width: 200px; max-width: calc(100% - 32px); padding: 14px 40px; text-align: center;
  background: rgba(255,255,255,.86); color: var(--ink); font-size: var(--f-md); font-weight: 700;
  border-radius: var(--r-sm); box-shadow: 0 6px 24px rgba(0,0,0,.28);
  transition: background .15s var(--ease);
}
a.br-card.bslide:hover .bs-cta { background: #fff; }
/* 글자가 그려진 그림 — 어둡게 까는 겹을 빼서 운영자가 만든 색이 그대로 나오게 */
.br-card.bslide.bs-plain::after { display: none; }

/* ★ 키보드로 배너에 오면 어디 있는지 보여야 한다. 배너는 넘김 상자(overflow) 안에
     꽉 차 있어서 바깥 테두리(outline)는 통째로 잘린다 — 안쪽에 그린다(교차검증). */
a.br-card.bslide:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
a.br-card.bslide:focus-visible .bs-cta { background: #fff; outline: 3px solid var(--accent); outline-offset: 3px; }

/* ★ 태블릿 폭(641~1140px)에서는 3:1 상자가 너무 낮아(768px 에서 256px) 위의 글자와
     아래 단추가 겹쳤다(교차검증 · 실측 12~71px). 이 구간은 높이를 380px 로 둔다 —
     1140px 에서 3:1 높이가 정확히 380px 이라 넘어가는 자리에서 튀지 않는다. */
@media (min-width: 641px) and (max-width: 1140px) {
  .br-card.bslide { aspect-ratio: auto; height: 380px; }
}
.bs-txt > b { font-size: var(--f-4xl); font-weight: 800; color: #fff; line-height: 1.2;
            text-shadow: 0 2px 18px rgba(0,0,0,.5); max-width: 24ch; }
.bs-txt > span { font-size: var(--f-xl); color: rgba(255,255,255,.9); line-height: 1.45;
               text-shadow: 0 1px 12px rgba(0,0,0,.5); max-width: 40ch; }
a.br-card.bslide:hover .bs-txt > b { text-decoration: underline; text-underline-offset: 6px; }

.br-ad {
  position: absolute; top: var(--s4); left: var(--s4); z-index: 2;
  padding: 2px var(--s2); border-radius: var(--r-full);
  font-size: var(--f-xs); font-weight: 700;
  color: #fff; background: rgba(9, 12, 19, .66);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px);
}

/* 좌우 화살표 — 동그라미 없이 큰 홑화살표 */
.br-nav {
  /* ★ 점 줄(44px)이 그림 **아래**로 내려가 .brail 이 그만큼 길어졌다.
       화살표는 점 줄을 뺀 **그림의** 가운데에 선다(화살표는 점과 함께만 생긴다). */
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.82);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
.br-nav:hover { color: #fff; }
.br-prev { left: var(--s3); }
.br-prev svg { transform: rotate(180deg); }
.br-next { right: var(--s3); }

/* 점 — 그림 **안쪽 아래**. 가운데 몇 칸만 차지하게 해서 배너 링크를 막지 않는다.
   ★ 예전에 점 줄이 배너 폭을 통째로 덮어 아래쪽을 눌러도 아무 데도 안 갔다.
     상자는 pointer-events: none, 점만 auto 로 되살린다. */
/* 점 — 보여 주신 화면처럼 **그림 아래** 줄에 놓는다(2026-11-12).
   그림 위에 얹었을 때는 아래쪽 글자·링크와 겹칠 걱정을 해야 했다. */
.bs-dots {
  display: flex; justify-content: center; align-items: center; gap: 0;
  padding-top: 0;
}
.bs-dot { width: 22px; height: 44px; border: 0; background: none; cursor: pointer;
          display: flex; align-items: center; justify-content: center; }
.bs-dot::before { content: ''; width: 8px; height: 8px; border-radius: var(--r-full);
                  background: var(--line-3); transition: background .2s; }
.bs-dot:hover::before { background: var(--text-4); }
.bs-dot.on::before { background: var(--text); }

@media (max-width: 640px) {
  .brail { margin-bottom: var(--s6); }
  .page > .brail:first-child { margin-bottom: 0; }
  /* 폰에서는 4:3 이 너무 낮아 소개 글이 점과 겹친다 — 높이를 폭에 맞춰 준다 */
  .br-card.bslide { aspect-ratio: auto; height: clamp(280px, 84vw, 380px); }
  .bs-txt { padding: var(--s5); }
  .bs-txt > b { font-size: var(--f-xl); }
  .bs-txt > span { font-size: var(--f-sm); }
  .bs-cta { min-width: 0; padding: 11px 24px; font-size: var(--f-sm); }
  .br-nav { display: none; }
}

/* ── 첫 장 = 사이트 소개 (2026-11-12) ──────────────────────────────
   배너가 0장이어도 맨 위가 비지 않게, 예전 제목 칸(.hero)을 슬라이더의
   첫 장으로 옮겼다. ★ 글자 규칙은 `.bs-txt > b / > span` 으로 **직계만** 잡는다 —
   자손까지 잡으면 이 장의 작은 딱지·링크 글자가 배너 제목 크기로 부푼다. */
.bs-hero .hero-bg {
  inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: 50% 50%;   /* 2026-11-19 기프트 궤도 그림 — 가운데 기준(폰에서도 가운데 기프트 넷이 보인다) */
  -webkit-mask-image: none; mask-image: none;
}
.bs-hero .bs-txt { gap: 0; }
/* 소개 장의 「처음이신가요? 먼저 읽어보기」 를 다른 배너의 「자세히보기」 자리(아래 가운데)로 */
.bs-hero .firsttime {
  /* 위 .bs-cta 와 같은 까닭으로 left/right 0 + margin auto 로 가운데에 둔다 */
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 8%, 60px);
  width: max-content; margin: 0 auto; max-width: calc(100% - 32px); justify-content: center; text-align: center;
  padding: 14px 32px; border: 0; border-radius: var(--r-sm);
  background: rgba(255,255,255,.86); color: var(--ink); font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.bs-hero .firsttime:hover { background: var(--btn-banner-hover); color: var(--ink); }   /* 흰 배너 단추 — 토큰(2026-11-18 · 예전 #fff) */
/* ★ --accent-2 는 밝은 단추 위에서 2.9:1 이라 읽기 어려웠다(교차검증) — 진한 파랑으로 */
.bs-hero .firsttime b { color: var(--accent-ink); }
@media (max-width: 640px) { .bs-hero .firsttime { padding: 10px 14px; font-size: var(--f-xs); gap: 6px; } }
.bs-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s4);
  padding: 5px 13px; border-radius: var(--r-full); font-size: var(--f-xs); font-weight: 800;
  letter-spacing: .06em; color: #86C4EE; background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.bs-hero h1 { font-size: var(--f-4xl); letter-spacing: -.02em; line-height: 1.2; color: #fff;
              margin: 0 0 var(--s3); text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.bs-hero .lead { font-size: var(--f-lg); color: rgba(255,255,255,.86); max-width: 620px;
                 margin: 0 0 var(--s2); line-height: 1.6; }
/* (2026-11-16 의 가운데 네모 그림 줄 .bs-art 는 2026-11-19 걷었다 — 기프트가 바탕 그림 hero-gifts.webp 안에 있다) */
/* 2026-11-19 기프트 궤도 그림 — 키가 380px 로 묶이는 641~1140px 과 제목이 큰 1141~1365px 은 제목 묶음(딱지 · 38px 제목 · 소개 줄)이 그림 가운데 기프트 위까지 내려왔다
   (실측 768 · 1024px 에서 소개 줄이 하트 · 반지 상자와 겹침). 그 폭에서만 위 딱지를 감추고 글자를 한 단 줄인다(폰 ≤640 과 같은 방식).
   320px 폰은 소개 줄이 두 줄로 접혀 같은 일이 생겨, 그림만 조금 내린다 — 비는 위쪽은 그림의 하늘색(--art-sky-1) · 이음매는 흐림 */
@media (min-width: 641px) and (max-width: 1365px) {
  .bs-hero .eyebrow { display: none; }
  .bs-hero h1 { font-size: var(--f-3xl); }
  .bs-hero .lead { font-size: var(--f-md); }
}
/* 1280~1599px 은 제목(38px)이 왼쪽 하트 기프트 윗부분에 닿았다(실측 1280 27px · 1440 5px) — 그림만 조금 내린다 */
@media (min-width: 1280px) and (max-width: 1599px) {
  .br-card.bs-hero { background: var(--art-sky-1); }
  .bs-hero .hero-bg { top: 9%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%); mask-image: linear-gradient(180deg, transparent 0, #000 10%); }
}
@media (max-width: 360px) {
  .br-card.bs-hero { background: var(--art-sky-1); }
  .bs-hero .hero-bg { top: 8%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%); mask-image: linear-gradient(180deg, transparent 0, #000 10%); }
}
@media (max-width: 640px) {
  .bs-hero .eyebrow { display: none; }
  .bs-hero h1 { font-size: var(--f-2xl); }
  .bs-hero .lead { font-size: var(--f-sm); margin-bottom: 0; }
}

/* ── 마켓 맨 위 「추천 매물」 띠 (2026-11-12) ─────────────────────────
   시계 거래소 「시계구매」 화면의 「추천 상품」 자리. 화면 끝에서 끝까지
   한 톤 밝은 띠를 깔고, 그 안에 가운데 제목 · 카드 줄 · 점을 둔다. */
.recband { background: var(--surface); border-bottom: 1px solid var(--line);
           padding: var(--s7) 0 var(--s3); margin-bottom: var(--s6); }
.recband .sec-hd { margin-bottom: var(--s6); }
.recband .sec-hd h2 { font-size: var(--f-2xl); font-weight: 600; }
@media (max-width: 640px) { .recband { padding: var(--s5) 0 var(--s2); } }

/* ── 배너 관리 표의 작은 그림 · 안전 거래 수칙 · 기프티톡 소개 ─────────
   ★ 2026-11-12 배너 모양을 고치면서 이 묶음을 통째로 지운 적이 있다
     (바꿀 범위를 「다음 머리말까지」로 잡았는데 그 사이에 이것들이 있었다).
     안전 수칙 칸이 글자만 덩그러니 남았다. 시험 「지워지면 안 되는 CSS」가 지킨다. */
.bnthumb { width: 120px; height: 40px; border-radius: var(--r-sm); overflow: hidden;
           background: var(--surface-2); border: 1px solid var(--line); flex: 0 0 auto; }
.bnthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.safety { margin: var(--s6) 0 0; padding: var(--s6); }
.sf-hd { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s5); }
.sf-hd h2 { font-size: var(--f-lg); margin: 0 0 2px; }
.sf-badge { flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 900px) { .sf-list { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s6); } }
.sf-i { display: flex; align-items: flex-start; gap: var(--s3); min-width: 0; }
.sf-ic { flex: 0 0 auto; color: var(--text-3); margin-top: 1px; }
.sf-i div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-i b { font-size: var(--f-md); color: var(--text); line-height: 1.45; }
.sf-i span { font-size: var(--f-sm); color: var(--text-3); line-height: 1.55; }
/* 마켓 아이디 링크 — 글줄 안에서 눌리는 곳이라는 것만 보이게. 아이디는 한 덩이로 둔다. */
.sf-mk { color: var(--accent); font-weight: 600; white-space: nowrap; }
.sf-mk:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-foot { margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line);
           font-size: var(--f-sm); color: var(--text-3); line-height: 1.6; }
/* 「따로 보기」(첫 화면 안전 칸 → #/safety) · 안전거래 화면 */
.sf-hd { position: relative; }
.sf-hd > div { flex: 1 1 auto; min-width: 0; }
.sf-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; align-self: center;
           font-size: var(--f-sm); font-weight: 600; color: var(--accent-fg); text-decoration: none; }
.sf-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.safety.is-page { margin-top: 0; }
.sf-tools { display: flex; justify-content: flex-end; padding: 0 var(--s3) var(--s2); }
.sf-next { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
/* ── 이용 수칙 전체(접이식) · 역할과 책임 안내 (2026-11-13) ─────────────
   <details> 두 겹: 바깥 「이용 수칙 전체 보기」 → 안쪽 수칙 하나하나.
   번호는 CSS counter — 수칙을 빼거나 더해도 번호가 저절로 이어진다(2026-11-16 중개 수칙을 지워 19가지). */
.sf-all { margin-top: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.sf-all > summary, .sf-rule > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s3); }
.sf-all > summary::-webkit-details-marker, .sf-rule > summary::-webkit-details-marker { display: none; }
.sf-all > summary { min-height: 48px; padding: var(--s3) var(--s4); font-weight: 700; color: var(--text); }
.sf-all > summary > span { flex: 1 1 auto; min-width: 0; }
.sf-all > summary .sf-cnt { font-style: normal; font-size: var(--f-xs); font-weight: 700; color: var(--text-3);
                            padding: 2px var(--s2); border-radius: var(--r-full); background: var(--surface-3); }
.sf-all > summary > svg, .sf-rule > summary > svg { flex: 0 0 auto; color: var(--text-3); transform: rotate(90deg); transition: transform .18s var(--ease); }
.sf-all[open] > summary > svg, .sf-rule[open] > summary > svg { transform: rotate(-90deg); }
.sf-all > summary:focus-visible, .sf-rule > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-sm); }
.sf-rules { list-style: none; margin: 0; padding: 0 var(--s2) var(--s2); counter-reset: sfr; display: grid; }
.sf-rules > li { counter-increment: sfr; border-top: 1px solid var(--line); }
.sf-rule > summary { min-height: 44px; padding: var(--s3) var(--s2); }
.sf-rule > summary b { flex: 1 1 auto; min-width: 0; font-size: var(--f-md); font-weight: 600; color: var(--text); line-height: 1.45; }
.sf-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: var(--r-full); display: inline-grid; place-items: center;
        font-size: var(--f-xs); font-weight: 800; color: var(--accent-fg); background: var(--accent-soft); }
.sf-n::before { content: counter(sfr); }
.sf-rule > p { margin: 0; padding: 0 var(--s2) var(--s3) calc(24px + var(--s3) + var(--s2));
               font-size: var(--f-sm); color: var(--text-2); line-height: 1.65; }
.sf-rule[open] > summary b { color: var(--accent-fg); }
@media (max-width: 640px) {
  .sf-rule > p { padding-left: var(--s2); }
}
.sf-foot > b { display: block; font-size: var(--f-sm); color: var(--text-2); margin-bottom: var(--s1); }
.sf-foot > p { margin: 0 0 4px; }
.sf-foot > p:last-child { margin-bottom: 0; }



/* ── 시세 화면 (2026-11-12) ───────────────────────────────────────────── */
.phot { margin-bottom: var(--s6); }
.phot-track { display: flex; gap: var(--s4); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s2); scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.phot-track::-webkit-scrollbar { display: none; }
.phot-track.at-end { -webkit-mask-image: none; mask-image: none; }
.photcard { flex: 0 0 auto; width: 170px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.photcard b { font-size: var(--f-sm); color: var(--text); line-height: 1.35; }
.photcard:hover b { color: var(--accent); }
.psearch { display: flex; align-items: center; gap: var(--s2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 0 var(--s3) 0 var(--s4); margin-bottom: var(--s5); }
.psearch .ico { color: var(--text-4); display: flex; flex: 0 0 auto; }
.psearch input { flex: 1 1 auto; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: var(--f-base); padding: 14px 0; }
.psearch input::placeholder { color: var(--text-4); }
.pzero { flex: 0 0 auto; }
.prow-b { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.pcount { font-size: var(--f-sm); color: var(--text-3); }
.pcount b { color: var(--text); }
.psort { width: auto; min-width: 150px; }
.pgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; gap: var(--s3); background: var(--surface); padding: var(--s5); text-decoration: none; color: inherit; }
.pcard:hover { background: var(--surface-2); }
/* 2026-11-13 카드 안에 「모델별 시세」 단추가 생겨 링크는 위쪽 덩어리만 */
.pcard-a { display: flex; flex-direction: column; gap: var(--s3); flex: 1 1 auto; color: inherit; text-decoration: none; min-width: 0; }
.pcard-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.pmodels { align-self: stretch; justify-content: center; min-height: 40px; }
.pimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); color: var(--text-4); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbody { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.pname { font-size: var(--f-md); color: var(--text); line-height: 1.35; }
.pko { font-size: var(--f-xs); color: var(--text-4); }
.pspecs { display: grid; gap: 3px; margin-top: var(--s1); }
.pspec { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-size: var(--f-xs); color: var(--text-4); }
.pspec b { color: var(--text-2); font-weight: 600; text-align: right; }
.pfoot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.pnone { font-size: var(--f-sm); color: var(--text-4); }
.pbig { font-weight: 800; color: var(--text); }
.pchip { font-size: var(--f-xs); font-weight: 800; padding: 2px var(--s2); border-radius: var(--r-full); white-space: nowrap; }
.pc-up   { color: var(--danger); background: var(--danger-soft); }
.pc-down { color: var(--accent); background: var(--accent-soft); }
.pc-flat { color: var(--text-4); background: var(--surface-3); }

/* ── 바깥 마켓 시세 (see.tg · 2026-11-13) ───────────────────────────
   카드 위쪽 「마켓 최저가」 덩어리 · 모델별 시세 창 · 매물 상세의 「마켓 시세」 칸.
   기프티톡 거래가와 섞이지 않게 이름표를 늘 붙인다. 색은 tokens 만 쓴다. */
.pmk { display: flex; flex-direction: column; gap: 4px; padding: var(--s3); margin-top: var(--s1);
       border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.pcard:hover .pmk { background: var(--surface-3); }
.pmk.is-none { background: transparent; border-style: dashed; }
.pmk.is-none .pnone { font-size: var(--f-sm); }
.pmk-l { font-size: var(--f-xs); color: var(--text-3); font-weight: 600; }
.pmk-v { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.pmk-s { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--f-xs); color: var(--text-3); }
.pmk-src { font-size: var(--f-xs); color: var(--text-3); white-space: nowrap; }
.pmk-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pspec .pchip { margin-left: var(--s1); }
/* 이름표는 한 줄로 두고, 값(가격 + 칩)이 길면 값 쪽이 아래로 접힌다 */
.pspec > span { flex: 0 0 auto; white-space: nowrap; }
.pspec > b { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.pspec > b .pchip { margin-left: 0; }

.pmodal .pm-top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
                  padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--f-sm); }
.pmodal .pm-q { width: 100%; }
.pmodal .pm-none[hidden] { display: none; }
.pmodal .pm-hd, .pmodal .pm-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 104px; align-items: center; gap: var(--s3);
}
.pmodal .pm-hd { font-size: var(--f-xs); color: var(--text-3); padding: 0 var(--s2); }
.pmodal .pm-hd > span:nth-child(2), .pmodal .pm-hd > span:nth-child(3) { text-align: right; }
.pmodal .pm-list { display: flex; flex-direction: column; max-height: min(52vh, 460px); overflow-y: auto;
                   border: 1px solid var(--line); border-radius: var(--r-md); }
.pmodal .pm-row { padding: var(--s2) var(--s2); border-top: 1px solid var(--line); font-size: var(--f-sm); }
.pmodal .pm-row:first-child { border-top: 0; }
.pmodal .pm-row[hidden] { display: none; }
.pmodal .pm-n { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pmodal .pm-n b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.pmodal .pm-r { font-size: var(--f-xs); color: var(--text-3); }
.pmodal .pm-p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.pmodal .pm-m { font-size: var(--f-xs); color: var(--text-3); }
.pmodal .pm-c { text-align: right; }
@media (max-width: 420px) {
  .pmodal .pm-hd, .pmodal .pm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pmodal .pm-hd > span:nth-child(3) { display: none; }
  .pmodal .pm-c { grid-column: 1 / -1; text-align: left; }
  .pmodal .pm-c:empty { display: none; }
}

/* ── 시세 다시 짜기 (2026-11-15 사장님 「이미지가 너무 큼 · 5개씩 · see.tg/tools 처럼」) ──────────
   목록 = 다섯 칸 · 작은 그림 / 컬렉션 = 왼쪽(컬렉션 · 차트 · 마켓별) + 오른쪽(모델 격자).
   색 · 간격은 모두 tokens.css 의 것. 움직임은 없다(눌림 색만). */
.ptool { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.ptool-l { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.ptool .pcount { margin-left: auto; }
.pseg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.pseg-b { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--s3); border: 0; border-radius: var(--r-sm);
          background: none; color: var(--text-3); font: inherit; font-size: var(--f-sm); font-weight: 700; cursor: pointer; white-space: nowrap; }
.pseg-b:hover { color: var(--text); }
.pseg-b.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line-2); }
.pseg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.usdt-ic { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: var(--r-full); background: var(--ok); color: var(--surface); font-size: 10px; font-weight: 900; line-height: 1; }
.usdprice { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; line-height: 1.1; }
.usdprice b { font-weight: 800; font-variant-numeric: tabular-nums; }
.usdprice .u { font-size: .74em; font-weight: 700; color: var(--text-3); }
.usdprice .ap { color: var(--text-4); font-weight: 600; }
.usdprice.is-big { gap: 8px; }
.usdprice.is-big .u { font-size: .5em; }

/* 목록 — 다섯 칸. 그림은 칸 폭의 절반쯤(예전에는 칸을 꽉 채워 270px 남짓이었다) */
.pgrid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 1100px) { .pgrid5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .pgrid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .pgrid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); } }
.pc5 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0;
       padding: var(--s4) var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
       color: inherit; text-decoration: none; }
.pc5:hover { background: var(--surface-2); border-color: var(--line-2); }
.pc5:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc5-img, .pd-img, .pm5-img { display: grid; place-items: center; flex: 0 0 auto; border-radius: var(--r-md); overflow: hidden;
       background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface-2) 72%); }
.pc5-img { width: 96px; height: 96px; margin-bottom: var(--s2); }
.pc5-img img, .pd-img img, .pm5-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pth.is-broken { visibility: hidden; }
.pc5-nm { font-size: var(--f-sm); font-weight: 800; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc5 .pko, .pm5 .pko { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc5-pr { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px var(--s2); margin-top: var(--s2); font-size: var(--f-md); }
.pc5-sub { display: flex; align-items: center; justify-content: center; min-height: 22px; }
.pc5-mk .mkt-nm, .pm5-mk .mkt-nm { font-size: var(--f-xs); color: var(--text-3); }
.pc5-mk .mkt-ic, .pm5-mk .mkt-ic { width: 16px; height: 16px; }
.pc5-own { font-size: var(--f-xs); font-weight: 700; color: var(--accent-fg); }

/* 컬렉션 하나 — 왼쪽 400px · 오른쪽 나머지 */
.pd { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
@media (max-width: 980px) { .pd { grid-template-columns: minmax(0, 1fr); } }
.pd-l { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.pd-r { min-width: 0; }
.pd-hd { display: flex; align-items: center; gap: var(--s3); }
.pd-back { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-full);
           border: 1px solid var(--line-2); color: var(--text-2); }
.pd-back:hover { background: var(--surface-2); color: var(--text); }
.pd-ttl { display: flex; flex-direction: column; min-width: 0; }
.pd-ttl h1 { font-size: var(--f-xl); line-height: 1.2; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-card, .pd-chart, .pd-mk, .pd-own { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); }
.pd-card { display: flex; align-items: center; gap: var(--s4); }
.pd-img { width: 72px; height: 72px; }
.pd-cn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-cn b { font-size: var(--f-lg); color: var(--text); }
.pd-chart { display: flex; flex-direction: column; gap: var(--s3); }
.pd-ch-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.pd-ch-v { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--f-xl); }
.pd-ch-top .pseg-b { min-height: 30px; padding: 0 var(--s2); font-size: var(--f-xs); }
.pd-range { display: flex; width: 100%; }
.pd-range .pseg-b { flex: 1 1 0; justify-content: center; padding: 0 4px; }
.pd-chart .hint { margin: 0; }

/* 차트 */
.pch { position: relative; height: 210px; padding: 18px 0 26px; touch-action: pan-y; }
.pch.is-empty { display: grid; place-items: center; height: auto; min-height: 150px; padding: var(--s4); text-align: center;
                border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-3); font-size: var(--f-sm); }
.pch.is-empty p { margin: 0; }
.pch-plot { position: relative; height: 100%; }
.pch-svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* see.tg 등락으로 거꾸로 계산한 날짜 점 — 속이 빈 동그라미(실제로 받은 값과 구별) */
.pch-est { position: absolute; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: var(--r-full);
           background: var(--surface); border: 2px solid var(--accent); pointer-events: none; }
.pch-area { stroke: none; }
.pch-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pch-s1 { stop-color: var(--accent); stop-opacity: .28; }
.pch-s2 { stop-color: var(--accent); stop-opacity: 0; }
.pch-cur { stroke: var(--line-2); stroke-width: 1; }
.pch-hi, .pch-lo { position: absolute; left: 0; font-size: 11px; color: var(--text-4); }
.pch-hi { top: 0; }
.pch-lo { bottom: 30px; }
.pch-x { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-4); }
.pch-dot { position: absolute; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: var(--r-full);
           background: var(--accent); border: 2px solid var(--surface); pointer-events: none; }
.pch-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 3px var(--s2); border-radius: var(--r-sm); white-space: nowrap;
           background: var(--tip-bg); color: var(--tip-fg); border: 1px solid var(--tip-line); font-size: var(--f-xs); font-weight: 700; pointer-events: none; }
.pch-dot[hidden], .pch-tip[hidden] { display: none; }

/* 마켓별 최저가 */
.pd-mk { padding-top: var(--s1); padding-bottom: var(--s1); }
.pd-mkr { display: flex; align-items: center; gap: var(--s2); min-height: 48px; }
.pd-mkr + .pd-mkr { border-top: 1px solid var(--line); }
.pd-mkr .mkt-nm { font-size: var(--f-sm); font-weight: 700; color: var(--text); }
.pd-min { font-size: 10px; font-weight: 900; letter-spacing: .04em; padding: 2px 6px; border-radius: var(--r-full); color: var(--ok-fg); background: var(--ok-soft); }
.pd-mkc { margin-left: auto; font-size: var(--f-xs); color: var(--text-4); }
.pd-mkp { flex: 0 0 auto; min-width: 96px; text-align: right; font-size: var(--f-sm); }
.pd-own h3 { font-size: var(--f-sm); color: var(--text-3); margin: 0 0 var(--s2); }
.pd-own .btn { margin-top: var(--s3); }

/* 모델 격자 */
.pd-mhd h2 { font-size: var(--f-xl); margin: 0 0 var(--s3); display: flex; align-items: baseline; gap: var(--s2); }
.pd-mtool { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.pd-mtool .psort { min-width: 130px; }
.pd-mq { flex: 1 1 160px; min-width: 0; width: auto; }
.pmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s3); }
@media (max-width: 560px) { .pmgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); } }
.pm5 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; padding: var(--s4) var(--s2);
       background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.pm5:hover { background: var(--surface-2); border-color: var(--line-2); }
.pm5:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm5-img { width: 76px; height: 76px; margin-bottom: var(--s2); background: none; }
.pm5-img.is-empty { background: var(--surface-2); }
.pm5-nm { font-size: var(--f-sm); font-weight: 800; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm5-r { font-size: 11px; color: var(--text-4); }
.pm5-p { margin-top: var(--s1); font-size: var(--f-md); }
.pm5-c { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px var(--s2); min-height: 22px; }
.pd-mnone { padding: var(--s6) 0; text-align: center; }
.pm5-b { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
/* 모델 목록 보기 — 한 줄에 하나: 그림 · 이름/희귀도/값 · 등락(오른쪽) (사장님이 보여 주신 짜임) */
.pmlist { display: flex; flex-direction: column; gap: var(--s2); }
.pmlist .pm5 { flex-direction: row; align-items: center; text-align: left; gap: var(--s3); padding: var(--s3) var(--s4); }
.pmlist .pm5-img { width: 52px; height: 52px; margin: 0; }
.pmlist .pm5-b { flex: 1 1 auto; align-items: flex-start; gap: 1px; }
.pmlist .pm5-p { margin-top: 2px; }
.pmlist .pm5-c { flex: 0 0 auto; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }

/* ══════════════════════════════════════════════════════════════════════
   매물 상세 — 자리 배분 (2026-11-14 운영자 말씀 「너무 조잡합니다 … 사용자들이 편하게」)
   ──────────────────────────────────────────────────────────────────────
   마크업은 pages-market.js 의 P.listing. 자료·단추·규칙은 그대로이고 차례와 무게만 바꿨다.

     넓은 화면(1101px~)   왼쪽 440px : 그림 → Gift 정보(칸 안에서 붙어 내려간다 · sticky — 2026-11-16)
                          오른쪽      : 딱지 줄 → 이름 → 한 줄 → 값 + 시세 두 칸 격자
                                        → 연락 묶음(.ld-act) → 거래 방법 → 주의 두 줄
                          두 칸 아래  : 이 판매자의 다른 매물 → 같은 컬렉션 매물 (전체 폭 · 둘 다 없으면 칸이 없다)
     태블릿(861~1100px)   두 칸 — 320px 그림 칸 | 정보 (같은 짜임)
     860px 아래(한 칸)    마크업 차례 그대로 — 그림 → 값 → 연락 묶음 → 거래 방법 → Gift 정보 → 다른 매물 → …
                          (641~860 그림은 왼쪽 320px · 640 아래 가운데 300px)

   · 가장 힘이 실리는 것은 연락 묶음 하나다(큰 Telegram 단추). 나머지 면은 전부 조용한 .panel 이다.
   · 구역 제목은 .sec-hd 한 벌. 구역마다 테두리 있는 면은 하나 — 상자 안에 상자를 두지 않는다
     (그래서 연락 묶음 안의 알림줄·거래 상태·「제가 구매했습니다」 칸은 테두리 없이 줄로만 나눈다).
   · 간격은 --s 단계로만 잡는다(묶음 안 8 · 12 · 16 · 면 안쪽 20(폰 16) · 묶음 사이 24 · 구역 사이 32).
   · 움직이는 것은 없다(펼침 화살표도 바로 돈다). 선물 그림 칸(.gimg)의 겹 규칙은 손대지 않았다.
   ════════════════════════════════════════════════════════════════════ */
.ld-back { margin-bottom: var(--s4); }
.detail-info { display: flex; flex-direction: column; gap: var(--s6); min-width: 0; }
.detail-media, .detail-gift { min-width: 0; }
.detail .sec, .detail-more .sec { margin-bottom: 0; min-width: 0; }
.ld .panel { padding: var(--s5); }
@media (min-width: 1101px) {
  /* 오른쪽 칸이 두 줄을 함께 쓴다. 남는 키는 아랫줄(Gift 정보 쪽)이 가져가서 그림과 Gift 정보 사이가 벌어지지 않는다 */
  .detail { grid-template-areas: "media info" "gift info"; grid-template-rows: auto 1fr; row-gap: var(--s6); }
  .detail-media { grid-area: media; }
  .detail-info { grid-area: info; }
  .detail-gift { grid-area: gift; }
}
/* 태블릿 가로(861~1100px) — 두 칸: 320px 그림 칸 | 정보. 화면 폭을 다 쓰는 그림이 값 · 연락을 둘째 화면으로 밀던 것 */
@media (min-width: 861px) and (max-width: 1100px) {
  .detail { grid-template-columns: var(--ld-media-w-tab) minmax(0, 1fr); grid-template-areas: "media info" "gift info";
            grid-template-rows: auto 1fr; column-gap: var(--s6); row-gap: var(--s6); }
  .detail-media { grid-area: media; }
  .detail-info { grid-area: info; }
  .detail-gift { grid-area: gift; }
  .detail-img { max-width: var(--ld-media-w-tab); margin: 0; }
}
/* ★ 2026-11-16 — Gift 정보를 다시 붙여 둔다(sticky). 2026-11-14 에 그림 칸 sticky 를 뺐던 것은 「왼쪽이 비지 않는다」였는데,
     오른쪽 칸(판매자 줄 · 시세 네 줄 · 운영자 줄 · 「제가 구매했습니다」)이 왼쪽보다 최대 190px 길어 아래 끝이 들쭉날쭉했다.
     칸(아랫줄 gift) 안에서만 붙어 내려가므로 마크업 차례(그림 → 값 · 연락 → Gift 정보)는 그대로다 — 맨 아래까지 내리면 두 칸 끝이 맞는다.
     머리말(sticky · --header-h) 아래에 선다. */
@media (min-width: 861px) {
  .detail-gift { align-self: start; position: sticky; top: calc(var(--header-h) + var(--s4)); }
}
/* 태블릿 세로(641~860px) — 한 칸. 그림은 왼쪽에 맞춰 둔다(아래 글이 모두 왼쪽 정렬이라 가운데 그림만 떠 보였다) */
@media (min-width: 641px) and (max-width: 860px) {
  .detail-img { max-width: var(--ld-media-w-tab); margin: 0; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .detail h1 { font-size: var(--f-2xl); }
  .price-big { font-size: var(--f-3xl); }
}

/* ── 머리 — 딱지 줄 · 이름 · 조용한 한 줄 ──
   딱지 줄의 셋(컬렉션 · 상태 · 데모 자료)은 한 모양(24px · --r-xs · f-xs) — 한 줄에 두 모양을 섞지 않는다(화면 문법 ⑥).
   컬렉션은 누르면 그 컬렉션 마켓으로 가는 링크라 손가락 기기에서 위아래 44px 자리를 갖는다(아래 hover: none). */
.ld-head { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.ld-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }
.ld-tags .chip { position: relative; max-width: 100%; min-width: 0; height: var(--pill-h-sm); padding: 0 var(--s2);
                 border-radius: var(--r-xs); font-size: var(--f-xs); font-weight: 700;
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-tags .chip:hover { border-color: var(--accent-line); color: var(--text); }
/* 제목 안의 한글 읽기 — 제목의 약 3분의 2 · 보통 굵기 · 흐린 글씨(ui.giftTitle 은 그대로 · 여기서만 줄인다) */
.ld-head h1 .gko { font-size: var(--f-ko-in-title); font-weight: 500; color: var(--text-3); margin-left: 6px; }
.ld-meta { font-size: var(--f-sm); color: var(--text-3); }
@media (max-width: 360px) {
  .ld-tags { gap: var(--s1); }
  .ld-tags .badge-mock { padding: 0 6px; }
}

/* ── 값 + 바깥 마켓 시세 (#mkbox · paintMarketBox) ──
   이름표 | 값 두 칸 격자. 줄(.mkl-row)은 display: contents 라 두 줄의 값이 같은 x 에서 시작한다.
   값 → 회색 글자(모델 · 마켓) → 24시간 칩(20px · 바탕은 조용하게 · 방향 색은 글자에만).
   「올라온 최저가(팔린 값 아님) · see.tg · 시각」은 두 칸을 다 쓰는 작은 줄이고, 누르면 긴 설명이 펼쳐진다(<details> — 스크립트 없음). */
.ld-price { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
/* 이름과 값은 한 덩이로 읽힌다 — 다른 묶음 사이(24px)보다 한 단 가깝게(16px) */
.ld-head + .ld-price { margin-top: calc(var(--s2) * -1); }
.mkline { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s4); row-gap: 2px;
          align-items: baseline; min-width: 0; font-size: var(--f-sm); color: var(--text-2); }
.mkl-row { display: contents; }
.mkl-k { color: var(--text-3); white-space: nowrap; }
.mkl-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); min-width: 0; color: var(--text); }
.mkl-v .tonprice { font-size: var(--f-sm); }
.mkl-m { font-size: var(--f-xs); color: var(--text-3); }
.mkline .pchip { display: inline-flex; align-items: center; align-self: center; height: var(--pill-h-xs); padding: 0 var(--s2);
                 background: var(--surface-3); font-size: var(--f-xs); font-weight: 700; }
.mkl-s { white-space: nowrap; }
.mkl-more { grid-column: 1 / -1; min-width: 0; }
.mkl-more > summary { list-style: none; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: center;
                      gap: 0 var(--s2); min-height: 24px; max-width: 100%; font-size: var(--f-xs); font-weight: 500; color: var(--text-3); }
.mkl-more > summary::-webkit-details-marker { display: none; }
.mkl-g { font-weight: 500; color: var(--text-3); }
.mkl-more > summary:hover .mkl-g { color: var(--text); }
.mkl-more > summary > svg { flex: 0 0 auto; transform: rotate(90deg); }
.mkl-more[open] > summary > svg { transform: rotate(-90deg); }
.mkl-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.mkl-x { display: flex; flex-direction: column; gap: var(--s2); max-width: 64ch; padding-top: var(--s1); }
.mkl-ft { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.mk-more { display: inline-flex; align-items: center; gap: var(--s1); min-height: 36px;
           font-size: var(--f-sm); color: var(--accent); text-decoration: none; font-weight: 600; }
.mk-more:hover { text-decoration: underline; }
/* 좁은 폰 — 이름표는 왼쪽, 값은 오른쪽 끝. 줄마다 한 줄에 선다(회색 글자가 먼저 줄어든다) */
@media (max-width: 400px) {
  .mkline { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); }
  .mkl-v { flex-wrap: nowrap; justify-content: flex-end; }
  .mkl-v > .tonprice, .mkl-v > .pchip { flex: 0 0 auto; }
  .mkl-m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* 판매완료 — 모양만 한 단 낮춘다(연락 단추는 그대로 · 운영자 규칙) */
.ld-soldline { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--f-sm); font-weight: 600; color: var(--text-3); }
.ld.is-sold .price-big { color: var(--text-2); }
.ld.is-sold .detail-img .gimg > img, .ld.is-sold .detail-img .gimg > .giftbd { filter: saturate(.35) brightness(.8); }

/* ── 연락 묶음 — 판매자 묶음 · 사실 한 줄 · 큰 연락 단추 · 판매자 페이지 보기 · 찜/공유/신고 ──
   높이는 둘뿐이다: 큰 연락 단추 56px · 나머지 44px(손가락 기기가 아니어도). 사이는 12px, 판매자 · 운영자 줄 앞에만 가는 금 하나. */
.ld-act { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s5);
          background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
/* 판매자 묶음 — [사진 | 닉네임 / 딱지 한 줄 | 팔로우(사진 가운데 높이)] → 사실 한 줄(전체 폭) */
.ld-seller { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
             grid-template-areas: "av nm fol" "av bd fol" "sub sub sub"; align-items: center; column-gap: var(--s3); row-gap: 2px;
             min-width: 0; }
.ld-seller > .av, .ld-seller > .avwrap { grid-area: av; align-self: center; }
/* 긴 닉네임은 「…」로 줄인다 — 딱지와 「팔로우」를 밀어내지 않는다 */
.ld-nick { grid-area: nm; align-self: end; justify-self: start; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
           font-size: var(--f-lg); font-weight: 800; line-height: 1.3; }
.ld-nick:hover { color: var(--accent); }
.ld-bd { display: inline-flex; flex-wrap: wrap; grid-area: bd; align-self: start; align-items: center; gap: var(--s1); min-width: 0; }
/* 「운영자 확인」 · 「텔레그램 로그인 확인」 — 글자만 떠 있지 않게 딱지와 같은 24px 모양(조용한 테두리) */
.ld-bd .tgvia { display: inline-flex; align-items: center; height: var(--pill-h-sm); margin: 0; padding: 0 var(--s2);
                border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
.ld-fol { grid-area: fol; display: flex; align-items: center; align-self: center; }
.ld-fol .btn-sm { min-height: var(--ctl-h-sm); }
.ld-sub { grid-area: sub; margin-top: var(--s1); }
.ld-sub > .ld-tr, .ld-sub > .ld-fo { color: var(--text-3); font-weight: 400; }
.ld-rt { display: inline-flex; align-items: baseline; gap: 3px; }
.ld-rt > svg { align-self: center; color: var(--gold); }
.ld-sub .ld-rt b { color: var(--text); }
.ld-tgs { color: var(--text-2); font-weight: 600; }
@media (max-width: 520px) {
  /* 좁은 폰 — 사진 · 닉네임 · 팔로우 한 줄, 딱지는 닉네임 아래(팔로우 밑까지 다 쓴다), 숫자는 그 아래 줄을 통째로 */
  .ld-seller { grid-template-areas: "av nm fol" "av bd bd" "sub sub sub"; }
}
@media (max-width: 400px) {
  /* 가장 좁은 폰 — 딱지 셋(등급 · TELEGRAM · 확인 방법)이 사진 옆 251px 에 다 못 선다(259px). 사진 · 닉네임 · 팔로우 한 줄 아래에
     딱지 줄을 통째로 두어 한 줄로 세운다(사진 옆에 셋째 줄이 매달리지 않게) */
  .ld-seller { grid-template-areas: "av nm fol" "bd bd bd" "sub sub sub"; row-gap: var(--s2); }
  .ld-nick { align-self: center; }
  .ld-bd .tgvia { padding: 0 6px; }
}

/* 거래 사실 · 「마지막 확인 N일」 — 띠가 아니라 조용한 한 줄.
   ★ 사이트 밖 거래·오래된 매물에는 경고색을 쓰지 않는다(벌주는 표시가 아니다). 경고색은 이의제기(ts-warn) 하나뿐이다. */
.ld-facts { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.tstate { display: flex; gap: var(--s2); align-items: flex-start; min-width: 0;
          font-size: var(--f-sm); color: var(--text-2); line-height: 1.55; }
.tstate .ti { flex-shrink: 0; line-height: 0; margin-top: 2px; color: var(--text-3); }
.tstate.ts-ok { color: var(--ok-text); }
.tstate.ts-ok .ti { color: var(--ok); }
.tstate.ts-warn { color: var(--warn-fg); }
.tstate.ts-warn .ti { color: var(--warn); }
/* 거래 사실 줄의 「거래 확인하러 가기」 — 확인해 줄 사람에게만 선다(2026-11-14). 상자가 아니라 줄 안의 링크다 */
.tstate .ts-go { position: relative; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* 가장 중요한 단추 — 이 화면에서 색이 채워진 큰 단추는 이것 하나다 */
.ld-act .btn.cta-tg { min-height: 56px; }
/* 묶음 안의 알림줄은 상자가 아니라 줄이다(상자 안의 상자를 두지 않는다) */
.ld-act .note { padding: 0; background: none; border: 0; border-radius: 0; gap: var(--s2); }
.ld-act .actionbar > .btn-icon { flex: 0 0 auto; }
/* 둘째 높이(44px) — 판매자 페이지 보기 · 찜 · 공유 · 신고 · 제가 구매했습니다 · 판매자 · 운영자 줄 */
.ld-act .actionbar > .btn, .claimbox > .btn { min-height: 44px; }
/* 「판매자 페이지 보기」 (운영자 요청 · 2026-11-14) — 닉네임 말고도 판매자 페이지로 들어가는 길.
   색을 채우지 않는다: 옅은 파랑 면 + 파란 금 + 파란 글씨. 채운 큰 단추는 위의 연락 단추 하나뿐이다 */
.ld-act .btn.ld-go { min-height: 44px; background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-fg); font-weight: 700; }
.ld-act .btn.ld-go:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-fg); }
.ld-act .btn.ld-go > span { min-width: 0; }
/* 신고 — 이름을 함께 적는다(예전의 깃발만 있는 빈 칸). 400px 아래에서는 그림만 44×44 */
.ld-act .ld-rep { flex: 0 0 auto; gap: var(--s1); color: var(--text-2); }
.ld-act .ld-rep:hover { color: var(--danger); border-color: var(--danger-line); }
@media (max-width: 400px) {
  .ld-rep-l { display: none; }
  .ld-act .ld-rep { width: 44px; padding: 0; }
}

/* 「제가 구매했습니다」(구매자에게만) · 판매자·운영자 줄 — 가는 금 하나로만 나눈다 */
.claimbox, .ld-own { display: flex; flex-direction: column; gap: var(--s3); min-width: 0;
                     padding-top: var(--s4); border-top: 1px solid var(--line); }
.claimbox .row { align-items: flex-start; }
.claimbox .ti { flex-shrink: 0; line-height: 0; margin-top: 2px; color: var(--text-3); }
.ld-own > .selfhint { margin-top: calc(var(--s1) * -1); }
/* 내 매물 — 수정 · 상태 변경 · 공유가 한 줄(같은 44px · 파란 금). 공유는 그림 단추(이름은 aria-label · title) */
.ld-own .actionbar > .btn { border-color: var(--accent-line); }
.ld-ownbar > .ld-share { flex: 0 0 auto; width: 44px; padding: 0; }

/* ── 거래 방법 — 공식 마켓 칩 (운영자 결정 · 2026-11-12 · 운영팀 중개 줄 .tw-esc 는 2026-11-16 중개서비스를 걷으며 뺐다) ──
   넓은 화면: 「거래 가능한 공식 마켓」과 칩이 한 줄(마켓 하나면 면 높이가 118 → 72px).
   폰: 칩이 두 칸 타일(그림 · 이름 / @아이디) — 한 줄에 하나씩 길게 쌓이던 것. ui.marketChip 마크업 · 마켓 그림은 그대로다. */
.ld-way { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.tw-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); min-width: 0; }
.tw-row + .tw-row { padding-top: var(--s4); border-top: 1px solid var(--line); }
.tw-row p { margin: 0; font-size: var(--f-sm); line-height: 1.6; }
.tw-k { font-size: var(--f-sm); color: var(--text-2); }
.tw-mk { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; font-size: var(--f-md); }
@media (min-width: 641px) {
  .ld .ld-way.panel { padding: var(--s4) var(--s5); }
  .tw-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s4); }
  .tw-k { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .tw-row { align-items: stretch; }
  .tw-mk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .ld-way .mkchip { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic nm" "ic h";
                    align-items: center; column-gap: var(--s2); row-gap: 0; min-width: 0; min-height: 48px;
                    padding: var(--s2) var(--s3); border-radius: var(--r-md); }
  .ld-way .mkchip > .mkt { display: contents; }
  .ld-way .mkchip .mkt-ic { grid-area: ic; }
  .ld-way .mkchip .mkt-nm, .ld-way .mkchip .mkt-h { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .ld-way .mkchip .mkt-nm { grid-area: nm; }
  .ld-way .mkchip .mkt-h { grid-area: h; font-size: var(--f-xs); }
  /* Telegram 은 아이디가 없다 — 이름이 두 줄 자리의 가운데에 선다(빈 둘째 줄을 두지 않는다) */
  .ld-way span.mkchip .mkt-nm { grid-row: 1 / span 2; }
}

/* ── 주의 두 줄 — 조용한 면 + 왼쪽 3px 경고 금(화면 문법 ④). 경고색은 굵은 말(선입금 요구 · 봇과 링크는 누르지 마세요)에만 ── */
.ld-caution { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4);
              background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: var(--r-md);
              font-size: var(--f-sm); color: var(--text-2); line-height: 1.6; }
.ld-caution li { display: flex; gap: var(--s2); align-items: flex-start; min-width: 0; }
.ld-caution li > span + span { flex: 1 1 0; min-width: 0; }
.ld-caution .ni { flex-shrink: 0; line-height: 0; margin-top: 2px; color: var(--warn); }
.ld-caution b { color: var(--warn-fg); }
@media (max-width: 640px) {
  .ld-caution { padding: var(--s3); font-size: var(--f-xs); line-height: 1.55; }
  .ld-caution .ni { margin-top: 1px; }
}

/* ── Gift 정보 — 한 격자(.kv-cells · 두 칸씩): 컬렉션 | 발행번호 · 모델 | 배경 · 심볼 | 발행 ──
   칸마다 이름표 → 값 → 작은 줄(한글 읽기 · 희귀도 %). 희귀도는 '몇 %만 가진 값인가' 라 낮을수록 귀하다.
   숫자 그대로만 적고 등급을 매기지 않는다 — 우리가 매긴 등급이 시세처럼 읽히면 안 된다.
   아래 원본 줄 · 소유자 표기 · 같은 선물 줄은 가는 금 하나 아래에 선다(상자 안의 상자가 아니다). */
.ld-gift { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.ld-kv { row-gap: var(--s4); }
.ld-kv .ld-kc { min-width: 0; }
.ld-kv dd { margin: 0; }
.ld-km { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); margin-top: 2px;
         font-size: var(--f-xs); color: var(--text-3); }
.ld-km .gko { margin: 0; font-size: var(--f-xs); font-weight: 500; color: var(--text-3); white-space: normal; }
.ld-km .rar { margin: 0; font-weight: 600; color: var(--text-3); }
.ld-km > .gko + .rar::before { content: '·'; margin-right: var(--s2); color: var(--text-4); }
.ld-trait.is-empty .v { color: var(--text-4); font-weight: 600; }
.ld-kv + .srcline, .ld-kv + .ld-samegift { padding-top: var(--s4); border-top: 1px solid var(--line); }
/* 소유자 표기 — 이름표 · 값 한 줄 + 바로 아래 정직 문장(작은 글자). 지갑 주소만 고정폭 · 가운데 줄임 */
.ld-owner { display: flex; flex-direction: column; align-items: stretch; gap: var(--s1); min-width: 0; }
.ld-ownrow { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s4); align-items: baseline; min-width: 0; }
.ld-ownrow .k { font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
.ld-ownrow .v { min-width: 0; font-size: var(--f-md); font-weight: 700; color: var(--text); }
.ld-ownrow .addr { padding: 0; background: none; border: 0; border-radius: 0; font-family: inherit; overflow-wrap: anywhere; }
.ld-ownrow .addr.is-wallet { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--f-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-owncap { font-size: var(--f-xs); color: var(--text-3); }

/* ── 두 칸 아래 — 이 판매자의 다른 매물 · 같은 컬렉션 매물 (전체 폭 · 둘 다 없으면 칸 자체가 없다) ── */
.detail-more { display: flex; flex-direction: column; gap: var(--s8); margin-top: var(--s8); min-width: 0; }
/* 「전체 보기」는 좁은 폰·긴 영어 제목 옆에서도 두 줄로 접히지 않는다 */
.ld .sec-more { flex: 0 0 auto; white-space: nowrap; }
/* 이 판매자의 다른 매물 — 넓은 화면은 카드 격자, 1100px 아래는 옆으로 미는 한 줄.
   오른쪽 끝을 흐려 「옆에 더 있다」를 알리고, 끝까지 밀면 흐림을 끈다(core.js markScrollEnds · 탭줄과 같은 방식). */
@media (max-width: 1100px) {
  .ld-rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: var(--s1) 0 var(--s2);
             -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
                     mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .ld-rail::-webkit-scrollbar { display: none; }
  .ld-rail.at-end { -webkit-mask-image: none; mask-image: none; }
  .ld-rail > .ggrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; }
  .ld-rail .gcard { scroll-snap-align: start; }
  /* 옆으로 미는 줄의 카드는 격자 카드보다 좁다(320px 에서 127px). 그 줄은 **한 판매자의 매물**이고 바로 위 제목 줄에
     그 판매자 이름이 있으니, 카드마다 되풀이하는 판매자 줄은 여기서만 그리지 않는다(2026-11-14 · 배지·별점이 카드 밖으로 밀렸다) */
  .ld-rail .gseller { display: none; }
}
@media (max-width: 640px) {
  .ld .panel, .ld-act { padding: var(--s4); }
  /* 폰 첫 화면 — 그림을 한 단 줄여(280px · 화면의 75%) 값 · 연락 단추를 첫 화면에 올린다. 기다리는 자리(#skimg)도 .detail-img 안이라 같이 줄어든다 */
  .detail-img { max-width: min(var(--ld-media-w-phone), 75vw); margin: 0 auto; }
  /* 폰은 한 칸이라 묶음 사이를 한 단씩 좁힌다(그림 ↔ 정보 32 → 20 · 정보 안 24 → 20 · 「← 마켓」 아래 16 → 8) — 연락 단추를 첫 화면 쪽으로 */
  .ld .detail { row-gap: var(--s5); }
  .ld .detail-info { gap: var(--s5); }
  .ld .ld-back { margin-bottom: var(--s2); }
  /* 원본 줄이 두 줄로 접히면 가운데점이 줄 끝에 혼자 남는다 — 좁은 화면에서는 점을 뺀다 */
  .ld-gift .srcline .dv { display: none; }
  .detail-more { gap: var(--s7); margin-top: var(--s7); }
  .ld-rail > .ggrid { grid-auto-columns: 44%; }
}

/* 손가락 기기 — 누르는 자리는 44px 이상 (CLAUDE.md 「손가락 자리」) */
@media (hover: none) {
  .ld-back, .ld-act .btn, .ld-way .btn { min-height: 44px; }
  .ld-act .btn-icon { width: 44px; }
  .ld-tags .chip::after { content: ''; position: absolute; inset: -10px 0; }   /* 딱지 24px + 위아래 10px씩 = 44px */
  .tstate .ts-go::after { content: ''; position: absolute; inset: -12px -4px; }   /* 글자 줄 20px + 위아래 12px씩 = 44px */
  .ld-nick { padding: 11px 0; margin: -11px 0; }
  .mkl-more > summary, .mk-more, .ld-way .mkchip { min-height: 44px; }
  .ld-gift .srcline a, .ld .sec-more, .mkl-ft .pmk-src a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 관리자 「바깥 마켓 시세」 상태 줄 */
.seetg-stat { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--f-sm); }
.seetg-stat:empty { display: none; }
.seetg-stat > span { display: inline-flex; align-items: center; gap: 5px; }
.seetg-ok { color: var(--ok); }
.seetg-err { color: var(--danger); }

/* ── 옆으로 미는 줄의 화살표·점 (2026-11-12) ─────────────────────────
   「추천 상품」 줄처럼 좌우에 화살표, 아래에 점. 여러 줄이 함께 쓴다. */
.rail { position: relative; }
.rail-nav .rn-btn {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4);
}
.rail-nav .rn-btn:hover { color: var(--text); }
.rail-nav .rn-prev { left: -46px; }
.rail-nav .rn-prev svg { transform: rotate(180deg); }
.rail-nav .rn-next { right: -46px; }
.rail-dots { display: flex; justify-content: center; align-items: center;
             gap: 0; margin-top: var(--s2); }
.rn-dot { width: 26px; height: 44px; border: 0; background: none; cursor: pointer;
          display: flex; align-items: center; justify-content: center; }
.rn-dot::before { content: ''; width: 7px; height: 7px; border-radius: var(--r-full);
                  background: var(--line-3); transition: background .2s, width .2s; }
.rn-dot:hover::before { background: var(--text-4); }
.rn-dot.on::before { background: var(--accent); width: 18px; }
/* 화살표를 바깥에 둘 자리가 없는 폭에서는 감춘다 — 손가락으로 밀면 된다 */
@media (max-width: 1360px) { .rail-nav { display: none; } }

/* 가운데 정렬 제목 — 「추천 상품」 자리 */
.sec-hd-c { justify-content: center; text-align: center; }

/* ── 프리미엄 매물 가로 줄 (2026-11-12) ───────────────────────────────
   시계 거래소의 「추천 상품」 자리와 같은 모양 — 큰 그림을 세우고 그 아래
   이름과 값. 값은 **하나만** 적는다(원가·할인가 두 줄은 이 사이트에 없는
   자료다 — 지어낸 취소선 가격은 손님을 속인다). */
.pickrail { display: flex; gap: var(--s4); overflow-x: auto; scrollbar-width: none;
            padding-bottom: var(--s2); scroll-snap-type: x proximity;
            -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
                    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.pickrail::-webkit-scrollbar { display: none; }
.pickrail.at-end { -webkit-mask-image: none; mask-image: none; }

/* ★ 이름은 .prem 이다. 처음에 .pick 으로 지었더니 「판매완료 처리」 창의
   두 갈래 고르기 상자(.pick, 위 2388줄)를 덮어써서 그 창이 찌그러졌다.
   CSS 이름도 data-act 처럼 **사이트 전체가 함께 쓰는 이름표**다. */
/* 보여 주신 「추천 상품」처럼 **한 화면에 네 장**이 폭을 꽉 채우고,
   머리 · 그림 · 이름 · 값이 전부 가운데에 선다. */
.prem { position: relative; flex: 0 0 auto; scroll-snap-align: start;
        width: calc((100% - 3 * var(--s4)) / 4);
        display: flex; flex-direction: column; align-items: center; gap: var(--s2);
        text-align: center;
        background: var(--surface-2); border: 1px solid var(--line);
        border-radius: var(--r-lg); padding: var(--s5) var(--s5) var(--s6);
        text-decoration: none; color: inherit; }
.prem:hover { border-color: var(--line-3); background: var(--surface-3); }
.prem-hd { max-width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 6px;
           font-size: var(--f-md); font-weight: 800; color: var(--text); margin-bottom: var(--s2); }
.prem-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prem-hd em { flex: 0 0 auto; font-style: normal; color: var(--accent); letter-spacing: .02em; }
/* 그림이 카드 폭을 다 쓰게 한다 — 안 그러면 절반 크기로 쪼그라든다 */
.prem-img { display: block; width: 100%; }
.prem-img .gimg { width: 100%; }
.prem-t { margin-top: var(--s3); font-size: var(--f-md); color: var(--text-2); line-height: 1.4; }
.prem:hover .prem-t { color: var(--accent); }
.prem-p { margin-top: var(--s1); font-size: var(--f-xl); font-weight: 800; }
.prem-p .tonprice { justify-content: center; }

@media (max-width: 1100px) { .prem { width: calc((100% - 2 * var(--s4)) / 3); } }
@media (max-width: 760px)  { .prem { width: calc((100% - var(--s4)) / 2); padding: var(--s4); }
                             .prem-hd { font-size: var(--f-sm); } .prem-p { font-size: var(--f-lg); } }
@media (max-width: 460px)  { .prem { width: 58%; padding: var(--s3) var(--s3) var(--s4); }
                             .prem-hd { font-size: var(--f-xs); margin-bottom: 0; } .prem-t { margin-top: var(--s2); font-size: var(--f-sm); } }
/* 넓은 화면에서는 화살표·점이 「더 있다」를 알려 주므로 끝을 흐리지 않는다 —
   흐리면 네 번째 카드의 오른쪽 가장자리가 지워져 보인다. */
@media (min-width: 761px) { .pickrail { -webkit-mask-image: none; mask-image: none; } }

/* ── 마켓 가로 필터 바 (2026-11-12) ───────────────────────────────────
   시계 거래소의 「브랜드 · 레퍼런스 · 모델명 · 보유지점 · 상세필터」 줄을
   본떴다. 칸을 선으로 이어 붙여 하나의 띠로 읽히게 한다. */
.fbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
        background: var(--line); border: 1px solid var(--line);
        border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s5); }
.fbtn { display: flex; align-items: center; justify-content: center; gap: var(--s2);
        min-height: 56px; padding: 0 var(--s3);
        background: var(--surface); border: 0; cursor: pointer;
        color: var(--text-2); font-size: var(--f-sm); font-weight: 600; }
.fbtn:hover { background: var(--surface-2); color: var(--text); }
.fbtn svg { opacity: .6; }
/* 걸린 것이 있는 단추는 눈에 띄게 — 어디서 걸렸는지 못 찾는 일을 막는다 */
.fbtn.on { color: var(--accent); background: var(--accent-soft); }
.fbtn-more { background: var(--surface-2); }

.msearch { max-width: 560px; display: flex; align-items: center; gap: var(--s2);
           background: var(--surface); border: 1px solid var(--line-2);
           border-radius: var(--r-md); padding: 0 var(--s4); margin-bottom: var(--s5); }
.msearch .ico { color: var(--text-4); display: flex; flex: 0 0 auto; }
.msearch input { flex: 1 1 auto; min-width: 0; background: none; border: 0; outline: none;
                 color: var(--text); font-size: var(--f-base); padding: 13px 0; }
.msearch input::placeholder { color: var(--text-4); }
/* 「검색」 단추 — 아이폰 숫자 자판에는 엔터가 없어서, 누를 수 있는 것이 이 단추뿐이다(pages-market.js · 2026-11-14 교차검증).
   칸 오른쪽 끝에 붙인다(칸의 오른쪽 안여백을 되돌려 쓴다). 손가락 자리 44px. */
.msearch-go { flex: 0 0 auto; min-height: 44px; min-width: 60px; margin: 3px calc(3px - var(--s4)) 3px 0; padding: 0 var(--s4);
              border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent);
              font-size: var(--f-md); font-weight: 800; white-space: nowrap; }
.msearch-go:hover { background: var(--accent-2); }
.msearch-go:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* 폰에서 글자 칸은 16px — 그보다 작으면 iOS 가 누르는 순간 화면을 확대하고, 「완료」 뒤에도 확대된 채 왼쪽이 잘렸다(교차검증 · 시뮬레이터) */
@media (max-width: 860px) { .msearch input { font-size: var(--f-input-touch); } }

/* 걸개를 가로 바로 옮겼으므로 목록은 한 칸을 다 쓴다 */
.market { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .fbar { grid-template-columns: repeat(3, 1fr); }
  .fbtn { min-height: 44px; font-size: var(--f-xs); }
}

/* ── 마켓 다듬기 (2026-11-16 · 사장님 「레이아웃이 뒤죽박죽」) ──────────────────────
   · 필터 바(폰) — 「상세필터」가 아랫줄 두 칸을 다 써서 빈 여섯째 칸이 없다. 이름표는 접지 않고, 좁으면 그림 · 여백을 줄인다.
   · 도구 줄(.mtools) — 번호 검색 · 건수 · 정렬이 한 줄(넓은 화면). 높이는 모두 --ctl-h(44). 폰은 검색이 한 줄을 다 쓴다.
   · 필터 창 — 묶음 하나뿐인 창은 같은 제목을 두 번 쓰지 않는다 · 묶음 안 「적용」은 작은 보조 단추(오른쪽) · 채운 단추는 창 아래 「적용」 하나. */
.fbtn { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) {
  .fbtn-more { grid-column: span 2; }
}
@media (max-width: 400px) {
  .fbtn { gap: var(--s1); padding: 0 var(--s2); }
  .fbtn svg { display: none; }
}
.mtools { gap: var(--s3); margin-bottom: var(--s4); }
.mtools .msearch { flex: 1 1 100%; max-width: none; margin-bottom: 0; min-height: var(--ctl-h); }
.mtools .msearch input { padding: 0; height: 42px; }
.mtools .msearch-go { min-height: 36px; margin-top: 3px; margin-bottom: 3px; }
.mtools .select { height: var(--ctl-h); border-radius: var(--r-sm); border-color: var(--line-2); }
@media (min-width: 981px) {
  .mtools { flex-wrap: nowrap; }
  .mtools .msearch { flex: 0 1 560px; }
  .mtools .cnt { flex: 0 0 auto; white-space: nowrap; }
}
@media (hover: none) { .mtools .msearch-go { min-height: 44px; margin-top: 0; margin-bottom: 0; } }
/* 묶음이 하나뿐인 창 — 창 제목(컬렉션 · 모델 …)과 같은 묶음 제목은 눈에서만 감춘다(글자 크기 0 · 화면 읽기는 그대로). 「해제」 · 「n개 선택」은 보인다 */
.filters-sheet.is-single > .fgroup { padding-top: 0; }
.filters-sheet.is-single > .fgroup > h4 { font-size: 0; margin-bottom: 0; justify-content: flex-end; gap: var(--s2); }
.filters-sheet.is-single > .fgroup > h4 > * { margin-bottom: var(--s2); }
.filters-sheet.is-single > .fgroup > h4 .fcnt { font-size: var(--f-xs); }
/* 묶음 안 「적용」 — 작은 보조 단추를 오른쪽에. 고른 것이 바뀌면 테두리만 진해진다(is-dirty · 채우지 않는다) */
.fapply-row { display: flex; justify-content: flex-end; margin-top: var(--s2); }
.fprice { margin-bottom: 0; }
.fprice .input { height: var(--ctl-h-sm); }
.js-fmk-apply.is-dirty { border-color: var(--accent); color: var(--accent-fg); }
@media (hover: none) { .fapply-row .btn { min-height: 44px; } }
/* 판매자 「신뢰회원 이상」 — 마켓 줄과 같은 체크란 한 줄 */
.fchk > span { min-width: 0; }
/* 걸개 그림을 못 받으면 빈 회색 칸을 접는다(이름 줄이 왼쪽에 붙는다) */
.fthw.is-empty { display: none; }

/* 눈에서는 감추고 화면읽기에는 남긴다 — 마켓의 h1 이 쓴다 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 거래 방법 — 공식 마켓 (2026-11-12 · 「운영팀 중개」 체크란 .tp-row 는 2026-11-16 중개서비스를 걷으며 뺐다) ─── */
/* 매물 등록의 체크란 — 글이 길어도 접히고, 손가락 자리는 44px */
.tradepick { gap: var(--s3); }
.tp-mk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.tp-mkl { width: 100%; font-size: var(--f-sm); color: var(--text-3); }
.tp-chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
           border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface);
           font-size: var(--f-sm); font-weight: 600; cursor: pointer; }
.tp-chip:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.tp-chip input { width: 16px; height: 16px; }

/* ── 공식 마켓 다섯 — 그림 + 이름 (2026-11-13 · ui.js 의 U.market · U.marketChip) ──
   그림은 각 마켓의 텔레그램 공식 프로필 그림 그대로다(다시 그리거나 색을 입히지 않는다).
   작은 둥근 네모로만 자른다. 못 받으면 자리만 비운다(이름이 옆에 있다). */
.mkt { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; vertical-align: middle; }
.mkt-ic { flex: 0 0 auto; width: var(--mkt-ic); height: var(--mkt-ic); border-radius: var(--r-xs);
          object-fit: cover; display: block; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); }
.mkt-ic.is-broken { visibility: hidden; }
.mkt-nm { min-width: 0; overflow-wrap: anywhere; }
.mkt-h { font-size: var(--f-xs); font-weight: 500; color: var(--text-3); overflow-wrap: anywhere; }
/* 매물 상세 「거래 방법」의 칩 — 봇이 있는 마켓은 링크(a), Telegram 은 글자(span) */
.mkchip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); max-width: 100%;
          min-height: 40px; padding: var(--s1) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-full);
          background: var(--surface); font-size: var(--f-sm); font-weight: 700; color: var(--text); }
a.mkchip:hover { border-color: var(--accent-line); }
a.mkchip:hover .mkt-h { color: var(--accent); }
/* 상세필터 「마켓」 — 체크란 다섯 줄. 손가락 자리 44px. 다섯뿐이라 목록 상자의 높이 제한을 푼다 */
.fgroup .fmk-opts { max-height: none; overflow: visible; }
.fmk { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; min-height: 44px; padding: 0 var(--s2);
       border-radius: var(--r-xs); font-size: var(--f-sm); color: var(--text-2); cursor: pointer; }
.fmk:hover { background: var(--surface-2); color: var(--text); }
.fmk.on { background: var(--accent-soft); color: var(--accent-fg); font-weight: 700; }
.fmk input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }
.fmk .c { margin-left: auto; font-size: var(--f-xs); color: var(--text-4); font-weight: 500; }
.fmk.on .c { color: inherit; opacity: .8; }
.fgroup .fmk-opts + .hint { margin: var(--s2) 0 var(--s3); }
/* 걸린 조건 딱지 · 매물 등록 체크란 안에서는 조금 작게 */
.applied .chip-mk .mkt { gap: 5px; }
.applied .chip-mk .mkt-ic, .tp-chip .mkt-ic { width: var(--mkt-ic-sm); height: var(--mkt-ic-sm); }

/* ── 관리자 배너 등록 — 규격 안내 · 3:1 미리보기 (2026-11-13) ───────────── */
.bnguide { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s4);
           border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
           font-size: var(--f-sm); color: var(--text-3); line-height: 1.55; margin-bottom: var(--s3); }
.bnguide b { color: var(--text); font-size: var(--f-md); }
/* 첫 화면과 **같은 3:1 상자** — 올린 그림이 실제로 어떻게 잘리는지 그대로 보인다 */
.bnprev { position: relative; width: 100%; aspect-ratio: 3 / 1; border-radius: var(--r-md); overflow: hidden;
          background: var(--surface-2); border: 1px dashed var(--line-3); margin-bottom: var(--s3); }
.bnprev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 점선 = 폰에서 보이는 자리(가운데 약 40%) */
.bnsafe { position: absolute; top: 0; bottom: 0; left: 30%; width: 40%;
          border-left: 2px dashed rgba(255,255,255,.85); border-right: 2px dashed rgba(255,255,255,.85);
          box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.bn-warn { color: var(--warn); }

/* 관리자 배너 목록 — 폰에서 제목이 한 글자씩 세로로 쌓이지 않게(교차검증) */
.bnrow { min-width: 0; }
.bnrow-t { min-width: 0; flex: 1 1 180px; }

/* ── 관리자 화면 다듬기 (2026-11-13) ───────────────────────────────────
   메뉴를 일의 성격으로 묶고(처리할 일 · 회원·매물 · 사이트 · 기록), 줄마다 그림을
   붙인다. 지금 있는 자리는 왼쪽 파란 띠로 짚는다 — 회색 바탕만으로는 잘 안 보였다. */
.admgrp { display: flex; flex-direction: column; gap: 2px; }
.admgrp + .admgrp { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.admgrp-t { padding: 0 12px 4px; font-size: var(--f-xs); font-weight: 800; letter-spacing: .04em; color: var(--text-4); }
.admnav button { position: relative; }
.admnav button .admi { display: flex; color: var(--text-4); flex: 0 0 auto; }
.admnav button:hover .admi, .admnav button.on .admi { color: var(--accent); }
.admnav button.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
                            border-radius: var(--r-full); background: var(--accent); }
.adml { min-width: 0; }
@media (max-width: 980px) {
  .admgrp { flex-direction: row; gap: 2px; }
  .admgrp + .admgrp { margin-top: 0; padding-top: 0; border-top: 0; padding-left: var(--s2); margin-left: var(--s2);
                      border-left: 1px solid var(--line); }
  .admgrp-t { display: none; }
  .admnav button.on::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 3px; }
}

/* 중개 신청 줄 */
.escf { margin-top: var(--s2); }
.esclist { margin-bottom: var(--s5); }
.escrow-row { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s5); }
.esc-hd { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.esc-gift { min-width: 0; color: var(--text); }
.esc-gift:hover { color: var(--accent); }
.esc-price { margin-left: auto; font-weight: 800; }
.esc-who { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); font-size: var(--f-sm); }
.esc-who a { font-weight: 600; }
.esc-who > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* 「신청 뒤 아이디 바뀜 (@긴_아이디)」 — .badge 는 줄을 안 바꿔 320 폭에서 화면이 가로로 밀렸다(2026-11-15 1순위 교차검증) */
.esc-who .badge { white-space: normal; overflow-wrap: anywhere; max-width: 100%; height: auto; min-height: var(--pill-h-sm); padding-top: 2px; padding-bottom: 2px; }
.esc-act { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.esc-sel { width: auto; min-width: 110px; }
.esc-note { flex: 1 1 220px; min-width: 0; }
.esc-by { font-size: var(--f-xs); }
.esc-st { font-weight: 800; }
.esc-new { color: var(--warn); background: var(--warn-soft); }
.esc-progress { color: var(--accent); background: var(--accent-soft); }
.esc-done { color: var(--text-3); background: var(--surface-3); }
.esc-cancelled { color: var(--text-4); background: var(--surface-2); text-decoration: line-through; }

/* ★ 320px 폰에서 운영자로 들어오면 「관리자」 단추 몫만큼 머리말이 21px 넘쳤다(실측).
     아주 좁은 폭에서만 틈과 단추를 조금씩 줄인다(2026-11-13). */
@media (max-width: 380px) {
  .hdr-in { gap: 4px; }
  .hdr-in > .brand { margin-right: var(--s1); }
  .hdr-r { gap: 4px; }
  #admBtn { padding: 0 7px; font-size: var(--f-xs); }
  /* 영어 화면에서는 언어 단추가 「한국어」라 더 길다 — 운영자일 때 6px 넘쳤다(2026-11-13 실측).
     그때만 지구 그림을 빼서 자리를 만든다(글자는 그대로라 무엇인지 알 수 있다). */
  html[lang="en"] #langBtn svg { display: none; }
  html[lang="en"] #langBtn { padding-left: 8px; padding-right: 8px; }
  /* 안전거래 방패 단추가 들어오면서(2026-11-13) 운영자로 들어온 320px 폰에서 28px 넘쳤다(실측).
     폰에서는 아래 메뉴에 「내정보」가 늘 있으므로, 「관리자」 단추가 설 때만 머리말의 내 사진 단추를 뺀다. */
  .hdr-r:has(#admBtn:not(.hide)) #meBtn { display: none; }
}
/* 폰의 가로 메뉴에서는 숫자 딱지를 글자 바로 옆에 붙인다(붙어서 겹쳐 보였다) */
@media (max-width: 980px) { .admnav .n { margin-left: 6px; } }

/* ── 화이트 모드에서도 배너·로그인 그림 칸 안은 「어두운 그림 위」다 (2026-11-13) ──
   배너·소개 장은 그림 위에 어두운 막을 깔고 흰 글씨를 얹는다. 화면이 밝아져도
   그 안의 글자·딱지 색이 밝은 화면용(진한 글씨)으로 바뀌면 안 보인다.
   그래서 배너 안에서만 다크 값을 다시 정한다. */
.mship, .br-card.bslide, .authart, .gimg {
  --text: #E9EDF5; --text-2: #A6B1C6; --text-3: #7B87A0; --text-4: #7A87A3;
  --accent: #3D9EE8; --accent-soft: rgba(61, 158, 232, .13); --accent-line: rgba(61, 158, 232, .34);
  --info-fg: #86C4EE;
  --ok: #34BC85; --ok-soft: rgba(52, 188, 133, .13); --warn: #D9A63C; --warn-soft: rgba(217, 166, 60, .13);
  /* ★ 2026-11-15 검토 — 노란 알림줄의 글씨 · 테두리도(빠져 있어서 화이트 화면의 멤버십 「신청을 받지 않습니다」 줄이
       어두운 바탕 위 진한 갈색 글씨 #7D5400 이었다 · 약 2.5:1) */
  --warn-fg: #E3BC6B; --warn-line: rgba(217, 166, 60, .30);
  /* ★ 2026-11-14 — 그림 위 유리 칩(--glass)도 다크 값으로 다시 정한다(tokens.css 의 다크 값 그대로).
       빠져 있어서 화이트 화면의 로그인·가입 그림 칸 세 줄(.authart-pts li)이 **흰 칩 위 흰 글씨**(1.2:1)였다 */
  --glass: rgba(9, 12, 19, .6); --glass-2: rgba(9, 12, 19, .82); --glass-line: rgba(255, 255, 255, .07);
  --danger: #E05A5A; --danger-soft: rgba(224, 90, 90, .13); --fav-on: var(--fav-on-pic);
}
/* ★ 2026-11-15 — 로그인 · 가입 그림 칸은 **늘 불꽃놀이 밤하늘**이다(화이트 화면에서도). 영상을 줄여 오른쪽 아래에 앉힌 뒤로
     칸의 나머지가 바탕색(화이트에선 밝은색)으로 드러나 흰 글씨가 안 보였다(사장님 화면). 바탕과 겹(--bg)을 영상 하늘색으로 고정한다.
     하늘색은 영상에서 뽑은 값(위 #0d1a37 → 아래 #183661) */
.authart { --bg: var(--art-bg); --accent-fg: var(--art-accent-fg); }
/* ★ 선물 그림 칸(.gimg)도 같은 까닭이다 — 그 위의 「판매중」 딱지·하트·움직임 표시·재생
     단추는 어두운 선물 그림 위에 얹힌다. 화이트 화면에서 글자만 진해지면 어두운 그림
     위에서 사라진다(교차검증 · 1.0~3.1:1). 그림 칸 안은 다크 화면과 똑같이 그린다.
   ★ 로그인 그림 칸의 큰 제목은 색을 직접 갖지 않고 body 에서 물려받으므로 여기서 준다 */
.authart { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════
   새 회사 로고 · 화면 밝기 단추 (2026-11-13)
   ════════════════════════════════════════════════════════════════════ */
/* 로고는 두 장(다크용 은색 · 화이트용 남색)을 다 두고 하나만 보인다 */
.logo-on-light { display: none !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }

.brand-logo { display: block; height: 30px; width: auto; }
@media (min-width: 981px) {
  /* 가운데 로고 아래에 작은 소개 글 — 보여 주신 시계 거래소의 「한국시계거래소」 자리 */
  .hdr .brand { flex-direction: column; align-items: center; gap: 4px; }
  .hdr .brand-logo { height: 64px; }
  .brand-sub { margin-top: 0; }
}

/* 로그인·가입 화면의 큰 로고 — 새 로고는 바탕이 투명이라 예전처럼 같은 색
   바탕을 깔고 가장자리를 흐릴 필요가 없다(예전 그림에는 검은 바탕이 구워져 있었다) */
.brandlock { background: none; -webkit-mask-image: none; mask-image: none; line-height: 0; }
.brandlock img { width: 100%; height: auto; }

/* 화면 밝기 단추 — 언어 단추와 같은 모양, 그림만 */
.themebtn { min-width: 36px; padding: 0 9px; margin-left: 6px; justify-content: center; }
/* 폰에서는 머리말에 자리가 없다(로그인 · 알림 · 관리자 단추). 바닥글의
   「화이트 모드 / 다크 모드」 글자가 같은 일을 한다. */
@media (max-width: 640px) { .themebtn { display: none; } }

.ftr-theme { display: block; padding: 3px 0; color: inherit; text-align: left; }
.ftr-theme:hover { color: var(--text-2); }
@media (max-width: 720px) { .ftr-theme { padding: 9px 0; } }

/* 관리자 배너 창 — 「그림만 넣기」를 켜면 글자 칸들을 감춘다(2026-11-13) */
.bntext[hidden] { display: none !important; }
.bnonly { align-items: flex-start; flex-wrap: wrap; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.bnonly .muted2 { flex: 1 1 100%; padding-left: 24px; }

/* ── 신고하기 창 (안전거래 화면 · 2026-11-13) ───────────────────────── */
.rpform textarea { min-height: 140px; resize: vertical; }
.rp-shots { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.rp-shots:empty { display: none; }
.rp-shot { position: relative; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden;
           border: 1px solid var(--line-2); background: var(--surface-2); }
.rp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-x { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border: 0; border-radius: var(--r-full);
        display: grid; place-items: center; cursor: pointer; color: var(--text); background: var(--overlay-2); }
.rp-x:focus-visible { outline: 2px solid var(--accent); }

/* ── 관리자 「회원 신고」 · 회원 바로 찾기 (2026-11-13) ───────────────── */
.admfind { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.admfind .aq { flex: 1 1 320px; width: 100%; min-width: 0; max-width: 640px; }

/* ── 관리자 「접속 감시」 (2026-11-14 운영자 요청 · pages-admin.js guardTab) ──────────
   새 모양을 만들지 않는다 — 숫자 칸(.adm-stats) · 접이식 구역(.tsec) · 표(.tblwrap) · 딱지(.badge)를 그대로 쓴다.
   여기는 IP 글자와 묶음 사이 간격만 정한다. */
.gd-note { margin-bottom: var(--s4); }      /* 맨 위 안내줄과 숫자 칸 사이 */
.gd-note-b { margin-top: var(--s4); }       /* 「감지」 아래 안내줄 */
.gd-ip { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }   /* 긴 IPv6 도 칸 안에서 꺾인다 */
.gd-iprow { white-space: nowrap; }
.gd-grp + .gd-grp { margin-top: var(--s5); }
.gd-grp-h { margin-bottom: var(--s2); }
.gd-found { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
/* IP 를 눌러 찾은 결과로 데려갈 때(guardTab 의 gdShowFound) — 붙어 있는 머리말에 「찾기」 제목이 가리지 않게 띄운다 */
.gd-findh { scroll-margin-top: calc(var(--header-h) + var(--s4)); }
.gd-sub { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); }
.gd-empty { padding: var(--s2) 0; }
.gd-total { margin-left: auto; align-self: center; }
.gd-keep { margin-bottom: var(--s3); }
.gd-allow { min-height: 84px; font-variant-numeric: tabular-nums; }
.rpkind { margin-bottom: var(--s3); }
.mrrow .mr-target { font-size: var(--f-md); color: var(--text); overflow-wrap: anywhere; }
.mr-detail { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: var(--f-sm); line-height: 1.6; }
.mr-shots { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mr-shots a { display: block; width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); }
.mr-shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-cands { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.mr-cand { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.mr-cand .mr-acts { margin-left: auto; display: inline-flex; gap: var(--s2); flex-wrap: wrap; }
.mr-handle .mrst { width: auto; min-width: 120px; }
.mr-handle .mrmemo { flex: 1 1 200px; min-width: 0; }
.mr-st.mr-open { color: var(--warn-fg); background: var(--warn-soft); }
.mr-st.mr-progress { color: var(--accent-fg); background: var(--accent-soft); }
.mr-st.mr-resolved { color: var(--ok-fg); background: var(--ok-soft); }
.mr-st.mr-rejected { color: var(--text-3); background: var(--surface-3); }

/* ── AI 비서 (2026-11-13 운영자 결정 · public/js/pages-ai.js) ─────────────
   색은 전부 tokens.css 이름만 쓴다(다크·화이트 두 벌이 저절로 맞는다).
   창은 공용 모달(.modal)이다 — 폰(1100px 아래)에서는 그 규칙대로 아래에서 올라오는 시트가 된다.
   ★ 긴 낱말(t.me 주소·지갑 모양 글자)이 320px 폰에서 화면을 밀지 않게 글 칸마다 overflow-wrap:anywhere · min-width:0. */
.modal-ai { max-width: 600px; }
.modal-ai .modal-bd { min-height: 220px; }
.modal-ai .modal-ft { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--s2); }
.modal-ai .modal-ft .btn { flex: 0 0 auto; }
.aip { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.aip-intro { font-size: var(--f-sm); line-height: 1.6; }
.aip-down { margin: 0; }
.aip-log { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.aip-msg { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; max-width: 100%; }
.aip-me { align-items: flex-end; }
.aip-bub {
  max-width: 88%; padding: 10px 14px; border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: var(--f-md);
}
.aip-ai {
  padding: 12px 14px; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.aip-ai.aip-fb { background: var(--warn-soft); }
.aip-ai.aip-errm { background: var(--danger-soft); }
.aip-txt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: var(--f-md); color: var(--text); }
.aip-txt a, .aip-fbhd a, .aip-cav a, .aip-err a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px;
  /* 손끝 자리 — 글 속 링크가 17px 높이로 줄줄이 붙어 있었다(2026-11-13 검토) */
  display: inline-block; padding-block: 5px; }
.aip-fbhd { display: flex; gap: 6px; align-items: flex-start; color: var(--warn-fg); line-height: 1.6;
            font-size: var(--f-md); overflow-wrap: anywhere; min-width: 0; }
.aip-fbhd > span { min-width: 0; }
.aip-fbhd svg, .aip-err svg { flex: 0 0 auto; margin-top: 4px; }
.aip-srcs { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.aip-srcs-t, .aip-chips-t { font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
.aip-src {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; min-width: 0;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .15s var(--ease);
}
.aip-src:hover { border-color: var(--accent-line); }
.aip-src-hd { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.aip-src-hd b { font-size: var(--f-sm); color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.aip-src-l { flex: 0 0 auto; padding: 1px 8px; border-radius: var(--r-full);
             font-size: var(--f-xs); font-weight: 700; color: var(--accent-fg); background: var(--accent-soft); }
.aip-src-t {
  font-size: var(--f-sm); color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.aip-links .chip, .aip-errm .chip { height: auto; min-height: 32px; white-space: normal; }
/* 답에 나온 판매자 (2026-11-13 운영자 결정) — 닉네임(사이트 안 프로필)과 텔레그램 아이디(t.me) 단추를 한 사람씩 한 줄에.
   긴 닉네임·아이디가 320px 폰을 밀지 않게 줄바꿈을 허락하고, 손끝이 닿게 높이 36px 를 지킨다 */
.aip-sellers { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.aip-seller { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.aip-seller .chip { height: auto; min-height: 36px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.aip-seller-n { color: var(--text); }
.aip-seller-tg { color: var(--tg-fg); border-color: var(--accent-line); }
.aip-seller-note { font-size: var(--f-xs); color: var(--text-3); line-height: 1.55; overflow-wrap: anywhere; }
.aip-by { font-size: var(--f-xs); color: var(--text-3); }
.aip-cav { font-size: var(--f-xs); color: var(--text-3); line-height: 1.55; overflow-wrap: anywhere; }
.aip-err { display: flex; gap: 6px; align-items: flex-start; color: var(--danger-fg);
           font-size: var(--f-md); line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
.aip-err > span { min-width: 0; }
.aip-wait { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); color: var(--text-2); font-size: var(--f-md); min-width: 0; }
/* 「그만 기다리기」 — 글자 단추. 창과 대화는 그대로 두고 이 질문만 거둔다 */
.aip-stop { margin-left: auto; min-height: 36px; padding: 0 10px; border-radius: var(--r-full);
            font-size: var(--f-sm); font-weight: 700; color: var(--text-2); border: 1px solid var(--line-2); }
.aip-stop:hover { color: var(--text); border-color: var(--line-3); }
.aip-retry { height: auto; min-height: 36px; color: var(--text); align-self: flex-start; }
/* 「새 대화」 — 대화 아래 오른쪽의 글자 단추 */
.aip-new { align-self: flex-end; min-height: 36px; padding: 0 12px; border-radius: var(--r-full);
           font-size: var(--f-sm); font-weight: 700; color: var(--text-3); border: 1px solid var(--line-2); }
.aip-new:hover { color: var(--text); border-color: var(--line-3); }
/* 창 아래 한 줄 알림(두 글자 미만 · 300자 · 한도 끝) — 토스트 대신 글자 칸 아래에 적는다 */
.aip-warn { font-size: var(--f-sm); color: var(--danger-fg); line-height: 1.5; overflow-wrap: anywhere; }
.aip-keys { flex: 1 1 auto; text-align: right; min-width: 0; }
@media (max-width: 860px) { .aip-keys { display: none; } }
.aip-count-warn { color: var(--warn-fg); font-weight: 700; }
.aip-count-full { color: var(--danger-fg); font-weight: 700; }
.aip-notice-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.aip-dots { display: inline-flex; gap: 4px; }
.aip-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: aipdot 1s infinite ease-in-out; }
.aip-dots i:nth-child(2) { animation-delay: .15s; }
.aip-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aipdot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .aip-dots i { animation: none; opacity: .6; } }
.aip-chips { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.aip-chips:empty { display: none; }
.aip-chip { height: auto; min-height: 36px; padding: 6px 13px; white-space: normal; text-align: left; line-height: 1.4; max-width: 100%; }
.aip-form { display: flex; gap: var(--s2); align-items: flex-end; min-width: 0; }
.aip-in { flex: 1 1 auto; width: auto; min-width: 0; min-height: 46px; max-height: 140px; resize: none; }
.modal-ai .modal-ft .aip-send { width: 46px; height: 46px; padding: 0; }
.aip-meta { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--f-xs); color: var(--text-3); }
.aip-left { font-weight: 600; }
.aip-left-0 { color: var(--danger-fg); font-weight: 700; }
.aip-count { flex: 0 0 auto; }
.aip-wait-t { min-width: 0; }
.aip-notice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: var(--s4) 0 var(--s2); }
.aip-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
          background: var(--accent-soft); color: var(--accent-fg); }
.aip-lead { font-size: var(--f-base); font-weight: 700; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 640px) { .modal-ai .modal-bd { min-height: 40vh; } }
/* 폰에서는 글자 칸을 16px 로 — iOS 사파리는 16px 보다 작은 칸에 들어가면 화면을 확대해 아래 시트가 밀린다 */
@media (max-width: 860px) { .aip-in { font-size: var(--f-input-touch); } }
/* 키가 아주 낮은 화면(자판이 올라온 인앱 브라우저 · 눕힌 폰) — 40vh 를 고집하면 글자 칸이 답의 끝을 가린다(2026-11-13 실측) */
@media (max-height: 460px) { .modal-ai .modal-bd { min-height: 0; } }

/* 관리자 「AI 비서」 탭 */
.aiadm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.aiadm-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--s3); font-size: var(--f-sm); }
.aiadm-kv dt { color: var(--text-3); }
.aiadm-kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.aiadm-mode { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 3px; gap: 3px; }
.aiadm-mode button { min-height: 34px; padding: 0 16px; border-radius: var(--r-full); font-weight: 700; color: var(--text-2); }
.aiadm-mode button.on { background: var(--accent); color: var(--on-accent); }
.aiadm-ok { color: var(--ok-fg); }
.aiadm-bad { color: var(--danger-fg); }
.aiadm-probs { margin: 0; padding-left: 1.2em; color: var(--warn-fg); font-size: var(--f-sm); line-height: 1.6; }
.aiadm-check { font-size: var(--f-sm); line-height: 1.6; overflow-wrap: anywhere; }
.aiadm-doc { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.aiadm-doc-hd { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.aiadm-doc-hd b { overflow-wrap: anywhere; min-width: 0; }
.aiadm-doc-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: var(--f-sm); line-height: 1.6;
                  max-height: 9.6em; overflow: hidden; }
.aiadm-doc-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.aiadm-st-draft { color: var(--warn-fg); background: var(--warn-soft); }
.aiadm-st-approved { color: var(--ok-fg); background: var(--ok-soft); }
.aiadm-st-retired { color: var(--text-3); background: var(--surface-3); }
.aiadm-excl { display: flex; flex-wrap: wrap; gap: 6px; }
.aiadm-excl span { font-size: var(--f-xs); padding: 2px 9px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-3); }
/* ── AI 비서 — 떠 있는 단추 (2026-11-13 · 운영자 말씀 「AI 비서 버튼을 잘 보이는 곳에 크게」) ─────────
   화면 오른쪽 아래에 늘 서 있는 알약 단추(#aiFab · index.html). 켜고 끄는 것은 pages-ai.js 의 paintBtn 이다
   (운영자가 켜 두었을 때만 · 매물등록·글쓰기·로그인·관리자 화면에서는 hidden).
   · 높이 56px · 그림 + 「AI 비서」 글자(320px 에서도 글자가 선다 — 실측).
   · 폰(980px 아래)에서는 아래 메뉴(.mnav) **위에** 선다 — 메뉴 높이 + 안전 영역 + 16px.
   · z-index 80 — 아래 메뉴(70) 위, 연락 막대(90)·창(200)·알림 글(300) 아래. 무엇도 가리지 않는 쪽으로 정했다.
   · 숨는 때(이름표는 JS 가 html 에 붙인다 — :has() 는 크롬이 다시 안 칠한 적이 있어 쓰지 않는다):
       .has-modal     창·시트가 열린 동안(core.js G.modal)
       .ai-typing     폰(980px 아래)에서 글자 칸에 들어가 있는 동안(자판 위로 올라와 적는 칸을 가린다 · pages-ai.js)
       .ai-on-listing 매물 화면(1639px 아래) — 연락 막대(#stickyCta)와 「Telegram으로 판매자에게 연락」 단추가
                      오른쪽 아래를 지난다. 이 사이트에서 가장 중요한 단추라 그 화면에서는 아예 서지 않는다
                      (막대가 뜰 때만 숨기면 연락 단추가 화면 아래로 들어오는 순간 그 위에 겹쳤다 — 실측)
                      ★ 2026-11-14 — 예전 선은 860px 이었다. 그런데 매물 화면은 1100px 까지 한 칸이라 861~1100px 에서 연락 단추의
                        오른쪽 끝과 「신고」가 AI 단추 밑으로 지나갔고, 두 칸(1101px~)에서도 1440×800 · 1280×800 에서는 오른쪽 칸의
                        「신고」·연락 단추 모서리를 덮었다(가운데를 눌러도 AI 창이 열렸다). 오른쪽 칸의 끝은 화면폭/2 + 615px,
                        AI 단추의 왼쪽 끝은 화면폭 − 146px(영어 − 192px)이라 1640px 부터는 가로로 겹칠 수 없다(1728px 실측: 겹침 없음)
   · 끝없이 도는 움직임은 없다. 나타날 때 한 번 떠오르는 것만 motion.css 에 있다.
   ★ 머리말의 작은 반짝임 단추와 320px 머리말을 줄이던 규칙(html 에 붙이던 has-ai 표시)은 뺐다 — 같은 곳으로 가는
     길을 둘 두지 않는다. 머리말은 AI 단추가 들어오기 전 크기로 돌아갔다(320px 실측은 CLAUDE.md 「AI 비서 → 회원 창」). */
.aifab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: var(--r-full);
  /* ★ 2026-11-18 고급 단추(설계 97 §4.3 · 결은 이 묶음 한 곳에서만) — 채운 단추(.btn-primary)와 같은 결: 위에서 오는 빛 + 제 색 그림자를 아래로 짧게.
       예전의 검은 --sh-3 은 화이트 화면에서 탁했다. 올림은 배경을 바꾸지 않고 안쪽 막(그라디언트는 부드럽게 바뀌지 않는다 · 움직이는 것은 motion.css 에만) */
  background-color: var(--accent); background-image: linear-gradient(180deg, var(--btn-pri-top), var(--btn-pri-bot));
  color: var(--on-accent); border: 1px solid var(--btn-pri-line);
  font-size: var(--f-lg); font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--btn-hi), inset 0 -1px 0 var(--btn-lo), var(--btn-drop-pri); cursor: pointer;
}
.aifab:hover { box-shadow: inset 0 0 0 999px var(--btn-veil-hover), inset 0 1px 0 var(--btn-hi), inset 0 -1px 0 var(--btn-lo), var(--btn-drop-pri); }
.aifab:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: var(--r-full); }
.aifab-ic { display: inline-flex; flex: 0 0 auto; }
.aifab-t { flex: 0 0 auto; }
html.has-modal .aifab { display: none; }
@media (max-width: 980px) {
  .aifab { right: 16px; bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 16px); }
  html.ai-typing .aifab { display: none; }
  /* 화면 맨 아래까지 내렸을 때 바닥글 마지막 줄이 단추에 가리지 않게 — 단추 높이 + 틈만큼 자리를 더 둔다 */
  html.has-aifab .ftr { padding-bottom: calc(var(--s8) + 76px); }
}
@media (max-width: 1639px) { html.ai-on-listing .aifab { display: none; } }
@media (min-width: 981px) { html.has-aifab .ftr { padding-bottom: calc(var(--s8) + 64px); } }

/* 첫 화면의 「AI 비서에게 물어보세요」 카드 (.js-ai-card · pages-market.js P.home) — 운영자가 켜 두었을 때만 보인다.
   사이트의 다른 판(.panel)과 같은 면·선·모서리. 포인트는 테두리의 옅은 파랑 하나뿐이다(네온 없음). */
.aicard {
  display: flex; align-items: center; gap: var(--s4); min-width: 0;
  padding: var(--s5); margin: var(--s5) 0; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--accent-line);
}
.aicard-ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
             background: var(--accent-soft); color: var(--accent-fg); }
.aicard-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.aicard-tx h2 { font-size: var(--f-xl); overflow-wrap: anywhere; }
.aicard-tx p { font-size: var(--f-md); color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.aicard-qs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-width: 0; }
.aicard-q { height: auto; min-height: 38px; padding: 6px 13px; white-space: normal; text-align: left; line-height: 1.4; max-width: 100%; }
@media (max-width: 760px) {
  .aicard { flex-wrap: wrap; align-items: flex-start; padding: var(--s4); gap: var(--s3); }
  .aicard-ic { width: 44px; height: 44px; }
  .aicard-tx { flex-basis: calc(100% - 44px - var(--s3)); }
}


/* ════════════════════════════════════════════════════════════════════
   카드 그림 아래 한 줄 — 거래 가능 마켓 로고 + 찜 하트 (운영자 말씀 · 2026-11-13)
   ui.js 의 U.cardCorner 가 그린다:  [Premium] ………… [로고][로고][+N][하트]
   ════════════════════════════════════════════════════════════════════
   ★ 겹치지 않는 까닭은 「자리 계산」이 아니라 **짜임**이다. 한 줄(flex)에 세우고,
     못 서면 Premium 이 윗줄로 올라간다(wrap-reverse). 로고가 몇 개 보일지는 그림 칸의
     폭(@container)이 정한다 — JS 가 창 폭을 읽지 않는다.
   ★ row-reverse — 태그 차례는 [로고+하트][Premium] 인데 오른쪽부터 선다. Premium 은
     margin-right:auto 로 왼쪽 끝에 붙는다. wrap-reverse 라 다음 줄은 **위**에 생긴다. */
.gcard .gimg, .prem .gimg { container-type: inline-size; container-name: gimg; }
.gimg > .gfoot {
  position: absolute; left: var(--gfoot-pad); right: var(--gfoot-pad); bottom: var(--gfoot-pad); z-index: 2;
  display: flex; flex-direction: row-reverse; flex-wrap: wrap-reverse; align-items: flex-start;
  gap: var(--s1);
}
.gfoot > .pflag { flex: 0 0 auto; margin-right: auto; }
.gcorner { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s1); min-width: 0; }

/* 로고 묶음 — 둥근 어두운 칩 안에 마켓 그림 하나씩. 그림은 텔레그램 프로필 그림 그대로, 둥글게만 자른다 */
.gmk { display: flex; align-items: center; gap: var(--gmk-gap); }
.gmk-c {
  flex: 0 0 auto; width: var(--gmk); height: var(--gmk); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pic-chip-on); border: 1px solid var(--pic-chip-line);
}
.gmk .gmk-ic { width: var(--gmk-ic); height: var(--gmk-ic); border-radius: 50%; box-shadow: none; background: none; }
.gmk-more { display: none; font-size: var(--gmk-f); font-weight: 800; color: var(--text); }
.gmk-more::after { content: attr(data-r3); }

/* 몇 개를 보일까 — 칩 자리 c 개인 폭에서 마켓이 n 개(n > c)면 로고 c-1 개 + 「+N」.
   한 칩 24px + 틈 3px, 하트 38px(손가락 기기), 양옆 6px 을 더한 값으로 자른 폭이다:
     칩 3자리 132px · 4자리 159px · 5자리 186px.
   기본(아래 규칙)은 3자리 — 320px 폰 두 칸 카드의 그림(137px)에 맞춘 값이다.
   @container 를 모르는 옛 브라우저는 이 기본에서 멈춘다(좁은 쪽이라 넘치지 않는다). */
.gmk[data-n="4"] > .gmk-c:nth-child(n+3):not(.gmk-more),
.gmk[data-n="5"] > .gmk-c:nth-child(n+3):not(.gmk-more) { display: none; }
.gmk[data-n="4"] > .gmk-more, .gmk[data-n="5"] > .gmk-more { display: grid; }
/* 아주 좁은 칸(132px 미만) — 2자리: 로고 1개 + 「+N」 */
@container gimg (max-width: 131.98px) {
  .gmk[data-n="3"] > .gmk-c:nth-child(n+2):not(.gmk-more),
  .gmk[data-n="4"] > .gmk-c:nth-child(n+2):not(.gmk-more),
  .gmk[data-n="5"] > .gmk-c:nth-child(n+2):not(.gmk-more) { display: none; }
  .gmk[data-n="3"] > .gmk-more { display: grid; }
  .gmk-more::after { content: attr(data-r2); }
}
/* 160px 부터 4자리 — 넷이면 다 보이고, 다섯이면 로고 3개 + 「+2」 */
@container gimg (min-width: 160px) {
  .gmk[data-n="4"] > .gmk-c:nth-child(n+3):not(.gmk-more),
  .gmk[data-n="5"] > .gmk-c:nth-child(3):not(.gmk-more) { display: grid; }
  .gmk[data-n="4"] > .gmk-more { display: none; }
  .gmk-more::after { content: attr(data-r4); }
}
/* 188px 부터 다섯 다 */
@container gimg (min-width: 188px) {
  .gmk[data-n="5"] > .gmk-c:nth-child(n+3):not(.gmk-more) { display: grid; }
  .gmk[data-n="5"] > .gmk-more { display: none; }
}

/* ── 찜 하트 ─────────────────────────────────────────────────────────
   안 누른 것 = 밝은 **테두리** 하트, 누른 것 = **빨갛게 채운** 하트 + 칩에 옅은 빨간 테.
   16px 에서 색만으로는 둘이 잘 안 갈려 모양(테두리 ↔ 채움)도 함께 바꾼다.
   ★ 눌린 칩은 바탕을 더 진하게 깐다(--pic-chip-on). 밝은 그림 위에서도 빨강이 3:1 을 넘게 하려는 것이다
     (재서 정했다 — 흰 그림 위 4.0:1 · 검은 그림 위 5.9:1 · CLAUDE.md 「카드 그림 아래 한 줄」). */
.gfoot .fav {
  position: relative; flex: 0 0 auto; width: var(--fav-sz); height: var(--fav-sz); color: var(--text);
}
@media (hover: none) { .gfoot .fav { width: var(--fav-hit); height: var(--fav-hit); } }
.gfoot .fav.on { color: var(--fav-on); background: var(--pic-chip-on); border-color: var(--fav-ring); }
.fav.on .hrt, .favbtn.on .hrt { fill: currentColor; }
.gfoot .fav:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; border-radius: 50%; }
/* 추천 띠 카드(.prem)의 하트 — 일반 카드(.gcard .fav)와 같은 칩 */
.prem .fav { border-radius: 50%; display: grid; place-items: center;
             background: var(--pic-chip); border: 1px solid var(--pic-chip-line);
             backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.prem .fav:hover { background: var(--pic-chip-on); }

/* 매물 상세의 「찜하기 / 찜함」 단추 — 눌린 상태는 파란 주 단추가 아니라 **빨간 하트**다
   (예전에는 btn-primary 로만 바뀌어 「Telegram 연락」 단추와 무게가 같아졌다). */
.favbtn .hrt { flex: 0 0 auto; }
.favbtn.on { border-color: var(--fav-line); background: var(--fav-soft); }
.favbtn.on .hrt { color: var(--fav-on); }

/* 머리말의 「찜목록」 단추 — 로그인한 회원에게만(app.js paintHeader) */
.favlink.on { color: var(--fav-on); }
.favlink.on .hrt { fill: currentColor; }   /* 찜목록 화면에 있는 동안 — 빨갛게 채운 하트 */
/* ★ 320px 폰에 운영자로 들어오면 「관리자」 단추 몫만큼 자리가 없다(실측). 그때만 뺀다 —
     「내정보 → 찜목록」 탭이 같은 목록을 보여 준다. (내 사진 단추를 빼는 위 규칙과 같은 방식) */
@media (max-width: 380px) { .hdr-r:has(#admBtn:not(.hide)) #favBtn { display: none; } }
/* ★ 2026-11-14 — 위 규칙이 380px 에서 멈춰서, 381~434px 폰(아이폰 390 · 393 · 430)에 운영자로 들어오면 단추 다섯
     (방패 · 찜 · 알림 · 내 사진 · 관리자)이 다 서서 머리말이 화면 밖으로 나갔다(실측: 393px 에서 「관리자」가 363~419 — 26px 이 화면 밖,
     영어는 381~439px 에서 「Admin」이 376~440). 다섯이 다 서는 폭(한국어 435 · 영어 456px)까지 운영자에게서만 찜 단추를 빼고,
     영어 「Admin」이 더 길어 찜을 빼고도 6px 넘치던 폭(~419px)까지는 내 사진 단추도 뺀다. 아래 메뉴 「내정보」에 둘 다 있다.
     (위 380px 줄은 그대로 둔다 — 그 아래는 틈·글자까지 줄이는 묶음과 한 짝이다) */
@media (max-width: 459px) { .hdr-r:has(#admBtn:not(.hide)) #favBtn { display: none; } }
@media (max-width: 419px) { .hdr-r:has(#admBtn:not(.hide)) #meBtn { display: none; } }
/* 영어 화면의 회원 — 381~389px 에서 머리말 오른쪽 끝이 화면 여백 안으로 5px 들어왔다(실측 370.3 > 365 · 넘치지는 않았다).
   380px 아래에서 하던 대로 언어 단추(「한국어」)의 지구 그림을 그 폭까지 뺀다(글자는 그대로다) */
@media (min-width: 381px) and (max-width: 389px) {
  html[lang="en"] #langBtn svg { display: none; }
  html[lang="en"] #langBtn { padding-left: 8px; padding-right: 8px; }
}
/* ★ 회원으로 들어온 320px 폰 — 단추가 넷(방패 · 찜 · 알림 · 내 사진)이 되어 35px 넘쳤다(실측: 오른쪽 끝 339 > 304).
     아래 메뉴에 「내정보」가 늘 있으므로, 360px 미만에서만 머리말의 내 사진 단추를 뺀다(360px 부터는 넷이 다 선다).
     html.has-user 는 app.js 의 paintHeader 가 로그인 여부로 붙인다 — :has() 를 모르는 브라우저에서도 듣는다. */
@media (max-width: 359px) { html.has-user #meBtn { display: none; } }

/* ── 찜목록 화면 (#/favorites · 내정보 「찜목록」 탭) ──────────────────
   팔렸거나 내려간 매물도 남겨 둔다(없어지면 찜이 사라진 줄 안다). 대신 그림을 흐리게 해
   「지금은 살 수 없다」가 상태 딱지와 함께 한눈에 읽히게 한다. */
.favlist .gcard[data-status="SOLD"] .gimg > img,
.favlist .gcard[data-status="CANCELLED"] .gimg > img,
.favlist .gcard[data-status="SOLD"] .gimg > .giftbd,
.favlist .gcard[data-status="CANCELLED"] .gimg > .giftbd { opacity: .45; }
.favlist .gcard[data-status="SOLD"] .gcard-bd,
.favlist .gcard[data-status="CANCELLED"] .gcard-bd { color: var(--text-3); }
.favsub b { font-weight: 800; color: var(--text); }
/* 열 수 없는 카드(취소된 남의 매물 — 상세가 404 다) — 링크가 아니다. 떠오르지 않고 손가락 표시도 없다(하트는 그대로 눌린다 · ui.js giftCard) */
.gcard.is-off { cursor: default; }
.gcard.is-off:hover { border-color: var(--line); transform: none; box-shadow: none; }

/* ── 카드 안의 작은 과녁 — 판매자 사진 · 닉네임 · 트로피의 말풍선 (2026-11-14 운영자 요청 · ui.js 「카드 안의 작은 과녁」) ──
   과녁은 <span data-act="go"> 다(카드가 이미 링크다). 여기서는 생김새만 — 「카드가 가만히 있는 것」과 나타나는 움직임은 motion.css.
   · 닉네임은 마우스를 올리면 파란 글씨 + 밑줄(누르면 판매자 페이지라는 표시). 사진에 올려도 이름이 같이 바뀐다(형제 선택자 ~ · :has() 없음).
   · 말풍선은 CSS 만(data-tip + ::after · CSP 그대로). 카드는 overflow: hidden 이라 **카드 안에서** 열린다:
       매물 카드  판매자 줄(.gseller) 바로 위 · 줄의 왼쪽 끝에 붙여 폭은 줄 폭까지(좁은 폰에서는 두세 줄로 접힌다)
       추천 띠    머리(.prem-hd) 바로 아래 · 가운데(띠는 옆으로 미는 상자라 위로 열면 잘린다)
       판매자 카드 사진 줄(.scard-top) 바로 아래 · 왼쪽 끝
     말풍선의 기준 상자는 그 줄이다(트로피에는 position 을 주지 않는다) — 그래서 줄 폭을 넘지 않고, 이름 칸(overflow: hidden)에 잘리지 않는다.
   · 마우스가 있는 기기에서만 뜬다(@media (hover: hover)). 폰에서는 누르면 바로 랭킹으로 간다. */
.gseller, .prem-hd, .scard-top { position: relative; }
.gseller [data-act="go"], .prem-hd [data-act="go"], .scard-nm [data-act="go"] { cursor: pointer; }
.gseller > .gs-av { flex: 0 0 auto; display: inline-flex; line-height: 0; }
.trophy[data-tip]::after {
  content: attr(data-tip);
  position: absolute; z-index: 6;
  width: max-content; max-width: 100%; box-sizing: border-box;
  padding: 5px 8px; border-radius: var(--r-sm);
  background: var(--tip-bg); color: var(--tip-fg); border: 1px solid var(--tip-line); box-shadow: var(--sh-2);
  font-size: var(--f-xs); font-weight: 700; line-height: 1.35; letter-spacing: 0;
  white-space: normal; overflow-wrap: anywhere; text-align: left; text-transform: none;
  pointer-events: none; opacity: 0; visibility: hidden;
}
.gseller .trophy[data-tip]::after { left: 0; bottom: calc(100% + 4px); }
/* 머리는 글자 폭만큼만 넓다 — 말풍선은 그보다 넓어도 된다(카드 가운데에 서므로 360px 폰의 띠 카드 190px 안에 든다) */
.prem-hd .trophy[data-tip]::after { left: 50%; top: calc(100% + 4px); max-width: 180px; transform: translateX(-50%); text-align: center; }
.scard-nm .trophy[data-tip]::after { left: 0; top: calc(100% + 4px); }
@media (hover: hover) {
  .trophy[data-tip]:hover::after { opacity: 1; visibility: visible; }
  .gseller .nm-t[data-act]:hover, .gseller .gs-av[data-act]:hover ~ .nm .nm-t[data-act],
  .prem-who[data-act]:hover { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 2px; }
}
/* ★ 같은 날 교차검증 — 손가락 기기에서는 판매자 줄의 과녁 셋(사진 · 트로피 · 닉네임 · 20px 높이 · 6px 간격)이 너무 작고 붙어 있었다.
     **그림은 그대로 두고 누르는 자리만** 위아래로 넓힌다 — 안쪽 여백만큼 바깥 여백을 거꾸로 빼서 자리(줄 높이 · 줄바꿈)는 한 픽셀도 안 바뀐다.
     옆으로는 3px 씩만 — 6px 틈의 가운데에서 만나 서로 겹치지 않는다(트로피를 누를 생각이 아니었는데 랭킹으로 가는 일이 없게).
     position · ::before 를 쓰지 않는다 — 트로피의 ::after 는 말풍선이고, 트로피에 position 을 주면 말풍선의 기준 상자가 바뀐다.
     닉네임 글자(.nm-t · 줄 안 글자)의 여백은 그 칸(.nm · 말줄임 칸이라 넘치는 것을 자른다) 안에서만 눌리므로 .nm 에도 같은 높이를 준다.
     실측(헤드리스 크롬 · 375px · 손가락): 사진 · 트로피 26×40 · 닉네임 글자 높이 40px 남짓 · 줄 높이 그대로 */
@media (hover: none) {
  .gseller > .gs-av[data-act], .gseller .trophy[data-act] { padding: 10px 3px; margin: -10px -3px; }
  .gseller .nm { padding: 12px 0; margin: -12px 0; }
  .gseller .nm-t[data-act] { padding: 12px 0; }
}
/* ── (끝) 카드 그림 아래 한 줄 · 찜 하트 · 찜목록 — 시험(tests/favorites.test.js)이 이 구역을 잘라 색·크기를 본다 ── */

/* ── 로그인 · 회원가입 다시 꾸미기 (2026-11-13 운영자 요청) ─────────────────────
   그림은 Higgsfield 로 만든 두 장(로그인 = 가로 · 가입 = 세로, 원본은 브랜드원본/로그인그림/).
   ★ 색은 전부 토큰이다. 그림 위 칸(.authart)은 화이트 화면에서도 어두운 그림 위라
     위쪽 「화이트 모드」 구역이 글자색을 다크로 되돌려 둔다 — 여기서 새 색을 박지 않는다.
   ★ 폰(≤900px)에서는 왼쪽 그림 칸을 여전히 감춘다(로그인 칸이 한 화면 아래로 밀린다).
     대신 같은 그림을 카드 머리의 얇은 띠(.authcard-top)로 깐다. */
.authcard {
  position: relative; overflow: hidden;
  padding: var(--s6) var(--s5) var(--s6);
  background: linear-gradient(180deg, var(--sheen-5), transparent 140px), var(--surface);
  box-shadow: var(--sh-3);
}
.authhd h1 { font-size: var(--f-2xl); letter-spacing: -.02em; }
.authcard .field > label { color: var(--text); }
.authcard .input, .authcard .select { height: 48px; border-radius: var(--r-md); }
.authcard .authgo { width: 100%; margin-top: var(--s1); box-shadow: var(--sh-2); }
.authalt a { color: var(--accent-fg); }

/* 비밀번호 확인 칸의 한 줄(2026-11-16) — 맞으면 초록 · 다르면 빨강(색만이 아니라 글자로도 말한다) */
.hint.pwmatch.is-ok { color: var(--ok-fg); }
.hint.pwmatch.is-bad { color: var(--danger-fg); }

/* 「비밀번호를 잊으셨나요?」(2026-11-16) — 로그인 칸 아래 접이식 안내. <details> 라 스크립트 없이 열린다.
   요약 줄은 손가락 자리 44px · 열리면 공식 텔레그램 단추 하나(채운 단추는 로그인 하나뿐이라 Telegram 색 단추로 갈린다) */
.pwforgot { border-top: 1px solid var(--line); padding-top: var(--s3); }
.pwforgot > summary {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  color: var(--accent-fg); font-weight: 600; cursor: pointer; list-style: none;
}
.pwforgot > summary::-webkit-details-marker { display: none; }
.pwforgot > summary::after { content: '▾'; margin-left: 6px; font-size: .85em; }
.pwforgot[open] > summary::after { content: '▴'; }
.pwforgot > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.pwforgot-b { padding: var(--s2) 0 var(--s1); }
.pwforgot-steps { margin: 0; padding-left: 1.3em; list-style: decimal; display: grid; gap: var(--s2); color: var(--text-2); font-size: var(--f-sm); line-height: 1.55; }
.pwforgot-steps > li { list-style: decimal; }
.pwforgot-steps > li::marker { color: var(--accent-fg); font-weight: 700; }
.pwforgot-steps b { color: var(--text); }
.pwforgot-go { min-height: 48px; gap: 8px; }
.pwforgot-b .hint { margin: 0; }

/* 카드 머리 그림 띠 — 폰에서만 */
.authcard-top {
  position: relative; height: 136px; line-height: 0;
  margin: calc(var(--s6) * -1) calc(var(--s5) * -1) 0;
  background: var(--gimg-b);
  /* 가리개는 불투명하기만 하면 된다(색은 안 보인다) — 토큰 이름을 쓴다 */
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, var(--ink) 58%, transparent 100%);
}
.authcard-top > img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }

/* 글자 칸 앞의 작은 그림 + 비밀번호 보기 단추 */
.input-ic { position: relative; }
.input-ic > .ii {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  line-height: 0; color: var(--text-3); pointer-events: none; transition: color .15s var(--ease);
}
.input-ic > .input { padding-left: 42px; }
.input-ic:focus-within > .ii { color: var(--accent); }
.input-ic.is-tg:focus-within > .ii { color: var(--tg-fg); }
.input-ic.has-toggle > .input { padding-right: 50px; }
.pwtoggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--text-3); transition: color .15s var(--ease), background .15s var(--ease);
}
.pwtoggle:hover { color: var(--text); background: var(--sheen-5); }
.pwtoggle.on { color: var(--accent-fg); }
@media (hover: none) {
  .pwtoggle { width: 44px; height: 44px; right: 2px; }
  .authcard .input, .authcard .select { font-size: var(--f-input-touch); }
}

/* 가입 순서 — 지금은 첫 칸(가입 신청)이다 */
.authsteps { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.authsteps li {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: var(--f-sm); font-weight: 700; color: var(--text-3); white-space: nowrap;
}
.authsteps li + li::before { content: ''; flex: 0 0 18px; height: 1px; background: var(--line); margin-right: 2px; }
.authsteps li > b {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--f-xs); border: 1px solid var(--line); color: var(--text-3); background: var(--surface-2);
}
.authsteps li.on { color: var(--text); }
.authsteps li.on > b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.authsteps li > span { overflow: hidden; text-overflow: ellipsis; }
.authsteps li { flex: 0 1 auto; }
/* 아주 좁은 폰 — 한 줄에 셋이 안 들어가 글자가 잘렸다(320px 실측). 번호를 위에, 글자를 아래에 둔다 */
@media (max-width: 380px) {
  .authsteps { gap: var(--s1); align-items: flex-start; }
  .authsteps li { flex: 1 1 0; flex-direction: column; gap: 5px; text-align: center; font-size: var(--f-xs); white-space: normal; }
  .authsteps li + li::before { display: none; }
}

.frow2 { display: grid; gap: var(--s4); }

@media (min-width: 901px) {
  .authcard { padding: var(--s7); }
  /* 로그인 칸은 그림 칸 키에 맞춰 늘어난다 — 내용을 가운데 두어 아래가 휑하지 않게 */
  .authwrap:not(.is-join) .authcard { justify-content: center; }
  .authcard-top { display: none; }
  .authhd h1 { font-size: var(--f-3xl); }
  /* 가입 칸은 두 줄로 나눠 길이를 줄인다 — 칸이 좁으면 안내 글이 세 줄로 접히므로 폭을 조금 더 준다 */
  /* 가입 화면은 그림 칸 없이 가입 칸 하나를 가운데에(2026-11-15 사장님 지시) */
  .authwrap.is-join { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .authwrap.is-join .authbox { max-width: 560px; width: 100%; }
  .frow2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

  /* 그림 칸 — 불꽃놀이 영상(오른쪽 아래) · 글자(왼쪽 위) */
  .authart { min-height: 580px; box-shadow: var(--sh-3); background: linear-gradient(180deg, var(--art-sky-1) 0%, var(--art-sky-2) 62%, var(--art-sky-3) 100%); }
  /* 2026-11-15 셋째 — 불꽃놀이 장면(넓은 밤하늘 + 아래쪽에 페페 · 래도). 장면을 줄여 **오른쪽 아래**에 앉히고,
     글자는 **왼쪽 위**(비어 있는 하늘 자리)로 올렸다. 영상의 왼쪽 · 위 가장자리는 그림 칸 바탕(같은 남색)으로 서서히 사라진다.
     값은 래도가 오른쪽 끝에서 잘리지 않고, 페페가 하트 로켓을 들어 올려도 글자와 겹치지 않게 맞춘 것 */
  .authart > img, .authart > video {
    object-position: 50% 100%; transform-origin: 100% 100%; transform: translate(1.5%, 4%) scale(.82);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--bg) 22%), linear-gradient(180deg, transparent 0%, var(--bg) 18%);
    mask-image: linear-gradient(90deg, transparent 0%, var(--bg) 22%), linear-gradient(180deg, transparent 0%, var(--bg) 18%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .authart-in { inset: var(--s7) var(--s7) auto; max-width: 400px; }
  .authart-pts { max-width: 320px; }
  .authart::after { background: linear-gradient(165deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 40%, transparent 66%); }
  /* 영상이 돌기 시작하면 밑의 멈춘 그림을 감춘다 — 서서히 사라지는 가장자리에서 그림이 비쳐 둘로 보였다 */
  .authart.vid-on > img { visibility: hidden; }
  .authart > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
  .authart > video.is-on { opacity: 1; }
  .authart-eb { align-self: flex-start; font-size: var(--f-xs); font-weight: 800; letter-spacing: .08em; color: var(--accent-fg);
                padding: 4px var(--s3); border: 1px solid var(--accent-line); border-radius: var(--r-full); background: var(--accent-soft); }
  .authart-lead { margin: calc(var(--s2) * -1) 0 0; font-size: var(--f-md); color: var(--text-2); max-width: 440px; line-height: 1.6; }
  .authart-pts li > span:last-child { display: flex; flex-direction: column; gap: 1px; line-height: 1.45; }
  .authart-pts li > span:last-child { font-size: var(--f-sm); color: var(--text-2); }
  .authart-pts li b { font-size: var(--f-sm); font-weight: 800; color: var(--text); }
  .authart-in { gap: var(--s5); }
  .authart-in h2 { font-size: var(--f-3xl); line-height: 1.25; text-wrap: balance; }
  .authart-pts { gap: var(--s2); max-width: 440px; }
  .authart-pts li {
    align-items: center; padding: 10px var(--s3);
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-md);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--text);
  }
  .authart-pts .pi {
    width: 30px; height: 30px; display: grid; place-items: center; margin-top: 0;
    border-radius: var(--r-sm); background: var(--accent-soft);
  }
}
/* 키 낮은 노트북(1440×800 · 1280×800) — 그림 칸이 580px 이라 로그인 칸도 그만큼 늘어나, 「로그인」 단추가 첫 화면 아래 끝에 6px 걸리고
   「회원가입」 줄은 화면 밖이었다(실측 · 2026-11-14). 그 높이에서만 그림 칸을 460px 로 줄인다(1440×900 · 1728×1000 은 그대로) */
@media (min-width: 901px) and (max-height: 860px) {
  .authart { min-height: 460px; }
}

/* 「안전거래 수칙 | 처음이신가요?」 탭 줄 (2026-11-14) — 두 화면 맨 위에 같은 줄이 선다 */
.helptabs { margin: 0 0 var(--s6); }
/* 탭이 셋(2026-11-15) — 좁은 폰에서는 옆 여백을 줄여 덜 넘치게 한다(넘치면 G.showHelpTab 이 켜진 탭까지 민다) */
@media (max-width: 400px) {
  .helptabs > a { padding-left: var(--s2); padding-right: var(--s2); }
}

/* 판매자 프로필 「세 가지」 칸 아래의 한 줄 — 부풀리기는 제재한다(2026-11-14) */
.trustwhy .tw-foot { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--f-xs); line-height: 1.6; }

/* 매물 상세 판매자 줄의 팔로워 수 (2026-11-14) — 거래완료 옆, 한 단계 조용하게 */
.ld-fo { color: var(--text-3); font-weight: 600; }


/* ════════════════════════════════════════════════════════════════════
   랭킹 · 트로피 (2026-11-14 운영자 결정)
   「1~3위는 금·은·동 트로피」 · 「물건 등록 시 트로피 강조」 · 「판매자 프로필에도」 · 「랭킹 페이지도 퀄리티 있게」.

   · 금·은·동은 **그림이 말한다**(public/img/trophy/*.webp — 운영자가 힉스필드로 만든 것 그대로다.
     다시 그리거나 색·필터를 입히지 않는다). 그래서 칸의 바탕·테두리·글자는 조용하게 토큰 색만 쓴다 —
     번쩍이는 테두리도, 칸을 도는 빛도 없다(카지노 순위표처럼 보이면 안 된다).
     ★ 같은 날 운영자 요청으로 **트로피는 모두 움직인다.** 시상대와 판매자 프로필은 영상(힉스필드 · 아래 .trophy-live),
       카드 · 칩의 작은 트로피는 같은 움직임의 작은 그림(움직이는 WebP · 같은 날 두 번째 요청)이다.
       움직이는 것은 트로피 그림뿐이고 칸 · 테두리는 조용하다.
   · 트로피는 순위라는 **사실**이다. 배지 세 축(등급 · 인증 · 멤버십)과 다른 모양으로 그린다.
   · 크기는 tokens.css 의 --trophy-xs · --trophy-sm(작은 그림)과 --trophy-live-*(영상 받침). 움직임은 motion.css 에만 있다.
   ════════════════════════════════════════════════════════════════════ */

/* ── 트로피 그림 하나 · 칩 ── */
.trophy { display: inline-flex; flex: 0 0 auto; line-height: 0; vertical-align: middle; }
.trophy-ic { display: block; flex: 0 0 auto; width: var(--trophy-sm); height: var(--trophy-sm); object-fit: contain; }
/* 못 받은 그림 — 깨진 그림 표시를 남기지 않고 자리째 감춘다(ui.js 의 error 처리기가 붙인다) */
.trophy.is-broken, .trophy-ic.is-broken { display: none; }
.trophychip {
  display: inline-flex; align-items: center; gap: var(--s1); max-width: 100%; height: var(--pill-h-sm);
  padding: 0 var(--s2) 0 var(--s1);
  border: 1px solid var(--gold-line); border-radius: var(--r-xs); background: var(--gold-soft);
  font-size: var(--f-xs); font-weight: 700; color: var(--text); white-space: nowrap;
}
.trophychip .trophy-ic { width: var(--trophy-xs); height: var(--trophy-xs); }
.trophychip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { a.trophychip:hover { border-color: var(--gold); } }
/* 판매자 프로필 — 이름 바로 아래 한 줄. 맨 앞에 움직이는 트로피 하나(.trophy-live)가 서고 칩이 그 옆에 가운데 높이로 선다 */
.trophyrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }

/* ── 움직이는 트로피 (2026-11-14 운영자 요청 · ui.js 의 U.trophyLive) ──
   영상(둥근 받침)을 쓰는 자리는 랭킹 시상대와 판매자 프로필 두 자리뿐이다. 영상의 바탕이 어두운 남색이라 **둥근 어두운 받침** 안에 넣는다 —
   밝은 화면에서도 네모난 얼룩이 생기지 않는다(받침 색 --trophy-stage 는 두 테마에서 같다. 영상의 가장자리 색이다).
   · 멈춘 그림(.trophy-ic)이 먼저 깔리고, 영상(.trophy-vid)은 실제로 돌기 시작한 뒤에만 그 위에 보인다.
   · 테두리는 금만 옅은 금빛, 은 · 동은 조용한 선 — 받침이 번쩍이지 않는다. 움직이는 것은 영상 안의 트로피뿐이다. */
.trophy-live {
  position: relative; display: block; flex: 0 0 auto; isolation: isolate; overflow: hidden;
  width: var(--trophy-live-pf); height: var(--trophy-live-pf);
  border-radius: var(--r-full); background: var(--trophy-stage);
  box-shadow: 0 0 0 1px var(--line-2);
}
.trophy-live[data-metal="gold"] { box-shadow: 0 0 0 1px var(--gold-line); }
.trophy-live > .trophy-ic, .trophy-live > .trophy-vid {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
/* 영상은 실제로 돌기 시작해야 보인다 — 감췄다가 나타나는 규칙은 motion.css 에 있다(그림에는 필터 · 색을 입히지 않는다) */
.trophy-live > .trophy-vid { pointer-events: none; }

/* ── 매물 카드의 판매자 줄 — 이름 앞의 작은 트로피 ──
   그림은 줄지 않는다(그 줄의 다른 그림들과 같은 규칙). 이름이 남는 폭을 쓰고, 못 서면 별점이 다음 줄로 내려간다. */
.gseller > .trophy { flex: 0 0 auto; }
/* 판매자 카드 — 이름 줄(한 줄 · 말줄임) 안에서 이름 앞에 선다 */
.scard-nm > .trophy { margin-right: 6px; vertical-align: -4px; }
/* 추천 띠 카드의 머리 — 판매자 이름 앞 */
.prem-hd > .trophy { align-self: center; }
.prem-hd .trophy-ic { width: var(--trophy-xs); height: var(--trophy-xs); }
/* ★ 가장 좁은 폰(320px)의 추천 띠 카드는 머리 한 줄이 141px 뿐이다 — 「이름 + PREMIUM」만으로 거의 찬다.
     트로피(18px + 틈)를 세웠더니 여덟 글자 이름(PepeKing)이 「…」로 잘렸다(실측 · 2026-11-14).
     이름이 먼저다 — 그 폭에서만 이 자리의 트로피를 감춘다(같은 판매자의 일반 카드 · 상세 · 프로필에는 그대로 선다). */
@media (max-width: 359px) { .prem-hd > .trophy { display: none; } }

/* ── 랭킹 화면 ── */
/* 제목 아래 한 줄 — 「매일 한국시간 0시(자정) 기준으로 갱신됩니다 · 마지막 갱신 …」 */
.pagehd .rk-upd {
  display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s2);
  font-size: var(--f-sm); line-height: 1.55; color: var(--text-3);
}
.rk-upd svg { flex: 0 0 auto; margin-top: 3px; }
.rk-upd span { min-width: 0; overflow-wrap: anywhere; }
.rkpage .note { margin-bottom: var(--s5); }

/* 판 셋을 가르는 탭 — 세 칸을 똑같이 나눈다. 좁은 폰에서는 글자가 두 줄로 접힌다(낱말은 안 쪼갠다) */
.rk-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1);
  padding: var(--s1); margin-bottom: var(--s5);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.rk-tab {
  min-width: 0; min-height: 44px; padding: var(--s2);
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--f-md); font-weight: 700; line-height: 1.3; color: var(--text-3);
  text-align: center; word-break: keep-all; overflow-wrap: anywhere;
}
@media (hover: hover) { .rk-tab:hover { color: var(--text); } }
.rk-tab.on { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: var(--sh-1); }
.rk-tab:focus-visible { outline-offset: -2px; border-radius: var(--r-sm); }

.rk-panel { min-width: 0; }
.rk-hd { margin-bottom: var(--s4); }
.rk-hd h2 { font-size: var(--f-xl); letter-spacing: -.01em; }
.rk-rule { margin-top: var(--s1); font-size: var(--f-sm); color: var(--text-3); line-height: 1.55; }

/* 시상대 — 1 · 2 · 3위. 넓은 화면에서는 세 칸(셋이 다 있으면 가운데가 1위), 폰에서는 1 · 2 · 3 차례로 쌓는다.
   줄이 하나 · 둘뿐이어도 깨지지 않는다(.rk-pod-n1 · -n2 — 있는 만큼만 가운데에 세운다). */
.rk-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.rk-pod-n1 { grid-template-columns: minmax(0, 340px); justify-content: center; }
.rk-pod-n2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.rk-pod-n3 .rk-card-1 { order: 2; }
.rk-pod-n3 .rk-card-2 { order: 1; }
.rk-pod-n3 .rk-card-3 { order: 3; }
.rk-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3); min-width: 0;
  padding: var(--s5) var(--s4); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
/* 1위 칸만 한 단계 — 옅은 금빛 테와 위쪽의 아주 옅은 금빛. 2 · 3위는 그림만으로 갈린다 */
.rk-card-1 {
  padding-top: var(--s6); padding-bottom: var(--s6); border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--gold-soft), transparent 56%), var(--surface);
}
@media (hover: hover) {
  .rk-card:hover { border-color: var(--line-3); }
  .rk-card-1:hover { border-color: var(--gold); }
}
.rk-card:focus-visible { border-radius: var(--r-lg); }
.rk-top { display: flex; flex-direction: column; align-items: center; gap: var(--s1); flex: 0 0 auto; }
.rk-slot { display: grid; place-items: center; min-width: var(--trophy-live-md); min-height: var(--trophy-live-md); }
.rk-card .rk-slot .trophy-live { width: var(--trophy-live-md); height: var(--trophy-live-md); }
.rk-card-1 .rk-slot { min-width: var(--trophy-live-lg); min-height: var(--trophy-live-lg); }
.rk-card-1 .rk-slot .trophy-live { width: var(--trophy-live-lg); height: var(--trophy-live-lg); }
/* 트로피 그림을 못 받았을 때만 숫자가 대신 선다 */
.rk-fb { display: none; }
.trophy.is-broken + .rk-fb { display: grid; }
.rk-place { font-size: var(--f-sm); font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rk-card-1 .rk-place { color: var(--gold); }
.rk-body { display: flex; flex-direction: column; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
.rk-who { display: flex; flex-direction: column; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
.rk-nm { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--f-base); font-weight: 800; }
.rk-card-1 .rk-nm { font-size: var(--f-lg); }
.rk-bd { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s1); min-width: 0; }
.rk-meta { display: flex; flex-direction: column; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
.rk-rt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1); min-width: 0; font-size: var(--f-sm); color: var(--text-3); }
.rk-rt svg { flex: 0 0 auto; color: var(--gold); }
.rk-rt b { color: var(--text); font-weight: 800; }
.rk-val { font-size: var(--f-lg); font-weight: 800; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.rk-card-1 .rk-val { font-size: var(--f-xl); }
/* 4위부터의 줄 — 이름은 한 줄(말줄임), 배지는 옆에 서다가 못 서면 아래로 */
.rankrow .rk-nm { font-size: var(--f-md); }
.rankrow .rk-rt { margin-top: var(--s1); }

@media (max-width: 640px) {
  .rk-tab { font-size: var(--f-sm); }
  .rk-hd h2 { font-size: var(--f-lg); }
  /* 폰 — 1 · 2 · 3위를 차례로 쌓는다. 한 칸은 [트로피 + 순위] | [사진 · 이름 / 배지 / 평점 · 숫자] */
  .rk-pod, .rk-pod-n1, .rk-pod-n2 { grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
  .rk-pod-n3 .rk-card-1, .rk-pod-n3 .rk-card-2, .rk-pod-n3 .rk-card-3 { order: 0; }
  .rk-card, .rk-card-1 { flex-direction: row; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); text-align: left; }
  .rk-card-1 { background: linear-gradient(90deg, var(--gold-soft), transparent 56%), var(--surface); }
  .rk-slot, .rk-card-1 .rk-slot { min-width: var(--trophy-live-pod); min-height: var(--trophy-live-pod); }
  .rk-card .rk-slot .trophy-live, .rk-card-1 .rk-slot .trophy-live { width: var(--trophy-live-pod); height: var(--trophy-live-pod); }
  .rk-body { flex: 1 1 0; align-items: stretch; }
  .rk-who { flex-direction: row; align-items: center; }
  .rk-who .av { width: 36px; height: 36px; }
  .rk-nm, .rk-card-1 .rk-nm { font-size: var(--f-base); }
  .rk-bd { justify-content: flex-start; }
  .rk-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); }
  .rk-val, .rk-card-1 .rk-val { font-size: var(--f-base); margin-left: auto; }
  .rankboard .rankrow { gap: var(--s2); padding: var(--s3) 0; }
  .rankboard .rankval { font-size: var(--f-sm); }
  .rkpage .rankboard { padding: var(--s2) var(--s4); }
}
/* 손가락 기기 — 트로피 칩은 누르는 자리다(그 판의 랭킹으로 간다). 위아래로 손가락 자리를 넓힌다 */
@media (hover: none) {
  .trophychip { position: relative; }
  .trophychip::after { content: ''; position: absolute; inset: -9px 0; }
}
/* (끝) 랭킹 · 트로피 */

/* ════════════════════════════════════════════════════════════════════
   멤버십 PREMIUM · PRO · MAX (2026-11-15 사장님 지시) — pages-membership.js · ui.js 의 U.mshipBadge
   ★ 색은 전부 tokens.css 의 --mship-* 다. 멤버십 화면(.mship)은 화이트 화면에서도 **어두운 그림 위**라
     위쪽 「그림 위 다크 값」 묶음(.br-card.bslide, .authart, .gimg, .mship)이 글자색을 다크 값으로 다시 정하고,
     등급 글씨는 아래에서 그림 위 값(--mship-art-*)으로 다시 정한다.
   ★ 빛(테두리 빛 + 바깥 빛)은 여기, 움직임(빛줄기 · 부드럽게 바뀌기)은 motion.css 에만 둔다.
   ════════════════════════════════════════════════════════════════════ */
.mship {
  --mship-premium: var(--mship-art-premium); --mship-pro: var(--mship-art-pro); --mship-max: var(--mship-art-max);
  --mship-premium-soft: color-mix(in srgb, var(--mship-art-premium) 14%, transparent);
  --mship-pro-soft: color-mix(in srgb, var(--mship-art-pro) 12%, transparent);
  --mship-max-soft: color-mix(in srgb, var(--mship-art-max) 14%, transparent);
  --mship-premium-line: color-mix(in srgb, var(--mship-art-premium) 45%, transparent);
  --mship-pro-line: color-mix(in srgb, var(--mship-art-pro) 40%, transparent);
  --mship-max-line: color-mix(in srgb, var(--mship-art-max) 45%, transparent);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mship-bg); color: var(--text);
  padding: var(--s8) 0 var(--s9); min-height: 70vh;
}
/* 화면 맨 위를 꽉 채운다(첫 화면 배너와 같은 방식) */
.page:has(> .mship:first-child) { padding-top: 0; padding-bottom: 0; }
.mship-hero { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mship-art.is-broken { display: none; }
.mship::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--mship-hero-scrim) 0%, transparent 28%, transparent 72%, var(--mship-hero-scrim) 100%);
}
.mship-in { position: relative; }

/* 머리 — 왼쪽 제목 · 오른쪽 USDT 칩 + 기간 */
.mship-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.mship-ttl { flex: 1 1 320px; min-width: 0; }
.mship-ttl h1 { font-size: var(--f-4xl); font-weight: 800; letter-spacing: -.03em; }
.mship-ttl p { margin-top: var(--s2); font-size: var(--f-lg); color: var(--text-2); }
.mship-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s4); min-width: 0; }
.mship-usdt {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s4) 0 6px; border-radius: var(--r-full);
  border: 1px solid var(--mship-usdt); background: var(--mship-usdt-soft);
  color: var(--text); font-size: var(--f-md); font-weight: 700; white-space: nowrap;
}
.mship-t {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mship-usdt); color: var(--mship-btn-fg); font-size: 16px; font-weight: 800; line-height: 1;
}
/* 2026-11-26 — GRAM 결제 칩(TON 마크 + 「GRAM 결제」) · 같은 모양에 색만 TON 파랑 */
.mship-usdt.mship-gram { border-color: var(--mship-gram); background: var(--mship-gram-soft); padding-left: var(--s3); }
.mship-gram .tonmark, .mship-pay .tonmark { flex: 0 0 auto; }
/* 결제 창 — 쓴 시세 · 고정 시간(남은 시간은 1초마다 바뀐다 · 글자 폭이 흔들리지 않게 tnum) */
.mpay-rate { padding: var(--s2) var(--s3); border-left: 3px solid var(--mship-gram); background: var(--surface); border-radius: var(--r-xs); font-size: var(--f-sm); }
.mpay-amt .muted2 { font-size: var(--f-sm); font-weight: 500; }
.mship-seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  width: 420px; max-width: 100%; padding: 4px;
  border-radius: var(--r-lg); border: 1px solid var(--mship-glass-line); background: var(--mship-glass);
}
.mship-pd {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 6px var(--s2); border-radius: var(--r-md); color: var(--text); min-width: 0;
}
.mship-pd b { font-size: var(--f-lg); font-weight: 800; }
.mship-pd em { font-style: normal; font-size: var(--f-sm); font-weight: 700; color: var(--mship-disc); white-space: nowrap; }
.mship-pd:hover { background: var(--mship-glass); }
.mship-pd.on { background: var(--mship-btn); color: var(--mship-btn-fg); }
.mship-pd.on em { color: var(--mship-disc-on); }
.mship-off { margin-bottom: var(--s4); }

/* 내 상태 — G.mship.mineHtml(pages-membership.js) 한 덩어리. 이 화면은 화이트 화면에서도 어두운 그림 위라
   칸 안의 바탕 · 줄 값을 다크 값으로 다시 정한다(단추 · 딱지 · 지갑 칸이 흰 바탕 위 흰 글씨가 되지 않게) */
.mship-me { margin-bottom: var(--s5); }
.mship-me.panel {
  --surface: var(--mship-dk-surface); --surface-2: var(--mship-dk-surface-2); --surface-3: var(--mship-dk-surface-3);
  --surface-hover: var(--mship-dk-hover);
  --line: var(--mship-dk-line); --line-2: var(--mship-dk-line-2); --line-3: var(--mship-dk-line-3);
  --danger-fg: var(--mship-dk-danger-fg); --ok-fg: var(--mship-dk-ok-fg); --accent-fg: var(--mship-dk-accent-fg);
  background: var(--glass-2); border-color: var(--mship-glass-line);
}
/* 「신청 취소」 같은 옅은 단추 — 이 화면은 늘 어두운 그림 위라, 화이트 화면의 밝은 --surface-2 바탕을 쓰면
   올렸을 때 흰 글씨가 흰 바탕 위에 선다(2026-11-15 검토 · 약 1.1:1). 유리 칩 값으로 칠한다 */
.mship .btn-ghost:hover { background: var(--mship-glass); border-color: var(--mship-glass-line); }

/* 카드 셋 */
.mship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.mcard {
  --mship-c: var(--mship-art-pro); --mship-cg: var(--mship-glow-pro);
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  border-radius: var(--r-xl); border: 1px solid var(--mship-glass-line);
  background: radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--mship-c) 26%, transparent) 0%, transparent 62%), var(--mship-bg);
}
.mcard.mc-premium { --mship-c: var(--mship-art-premium); --mship-cg: var(--mship-glow-premium); }
.mcard.mc-max { --mship-c: var(--mship-art-max); --mship-cg: var(--mship-glow-max); }
.mcard-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mcard::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--mship-scrim) 0%, var(--mship-scrim) 42%, var(--mship-scrim-2) 100%);
}
/* 한 번 지나가는 빛줄기 — 자리만 여기, 움직임은 motion.css(.mcard:hover::before …) */
.mcard::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, var(--mship-sweep) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
/* 빛난다 — 마우스를 올렸을 때 · 키보드 초점 · 고른 카드 */
/* ★ 2026-11-15 사장님 「누르거나 올리면 빛나게」 — 처음 것은 너무 옅어서 화면에서 거의 안 보였다. 바깥 빛 두 겹 + 안쪽 빛 */
.mcard:hover, .mcard:focus-within, .mcard.is-on {
  border-color: var(--mship-c);
  box-shadow: 0 0 0 1px var(--mship-c), 0 0 24px 2px var(--mship-cg), 0 0 80px 8px var(--mship-cg), inset 0 0 46px -12px var(--mship-cg);
}
/* 마크 뒤에도 빛이 켜진다(마크 그림은 다시 그리거나 색을 입히지 않는다 — 그림자 빛만) */
.mcard:hover .mcard-mk img, .mcard:focus-within .mcard-mk img, .mcard.is-on .mcard-mk img {
  filter: drop-shadow(0 0 14px var(--mship-cg)) drop-shadow(0 0 4px var(--mship-c));
}
/* 카드 전체가 「고르기」 단추다 — 안쪽 글자 위를 눌러도 고른다. 「가입하기」만 그 위로 나와 따로 눌린다 */
.mcard-pick { position: absolute; inset: 0; z-index: 1; width: 100%; border-radius: inherit; background: transparent; cursor: pointer; }
.mcard-pick:focus-visible { outline: 2px solid var(--mship-c); outline-offset: -4px; border-radius: inherit; }
.mcard-in {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: var(--s3); height: 100%; padding: var(--s6);
}
.mcard-join { pointer-events: auto; }
.mcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.mcard-ttl { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.mcard-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 var(--s3);
  border-radius: var(--r-full); border: 1px solid var(--mship-c); background: var(--mship-glass);
  color: var(--text); font-size: var(--f-sm); font-weight: 700; letter-spacing: .05em;
}
.mcard-ttl h2 { font-size: var(--f-2xl); font-weight: 800; letter-spacing: -.02em; }
.mcard-ttl p { font-size: var(--f-md); color: var(--text-2); }
.mcard-mk { flex: 0 0 auto; width: var(--mship-mark); height: var(--mship-mark); margin: calc(var(--s3) * -1) calc(var(--s3) * -1) 0 0; }
.mcard-mk img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mcard-price { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.mcard-price b { font-size: var(--f-mship-price); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.mcard-price span { font-size: var(--f-xl); font-weight: 800; }
.mcard-price.is-none b { font-size: var(--f-2xl); color: var(--text-2); }
.mcard-term { min-height: 1.55em; font-size: var(--f-md); color: var(--text-2); }
.mcard-join {
  position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; margin-top: var(--s2); padding: 0 var(--s9);
  border-radius: var(--r-lg); background: var(--mship-btn); color: var(--mship-btn-fg);
  font-size: var(--f-lg); font-weight: 800;
}
.mcard-join svg { position: absolute; right: var(--s5); }
.mcard-join:hover:not(:disabled) { background: var(--mship-btn-hover); }
.mcard-join:focus-visible { outline: 2px solid var(--mship-c); outline-offset: 3px; }
.mcard-join:disabled { opacity: .5; cursor: not-allowed; }
.mcard-bn {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--s3);
  margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--mship-glass-line);
}
.mcard-bn > b { font-size: var(--f-lg); font-weight: 800; }
.mcard-bn ul { display: flex; flex-direction: column; gap: var(--s2); }
.mcard-bn li { display: flex; align-items: center; gap: var(--s3); font-size: var(--f-md); color: var(--text); }
.mcard-ck {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid var(--mship-c); color: var(--mship-c);
}
.mcard-foot { display: flex; justify-content: center; padding-top: var(--s4); border-top: 1px solid var(--mship-glass-line); }
.mcard-tag {
  display: inline-flex; align-items: center; gap: var(--s2); height: 38px; padding: 0 var(--s5) 0 var(--s3);
  border-radius: var(--r-full); border: 1px solid var(--mship-c); background: var(--mship-glass);
  font-weight: 800; letter-spacing: .05em;
}
.mcard-tag .mship-mk { width: var(--mship-mark-md); height: var(--mship-mark-md); }

/* 아래 안내 */
.mship-foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  margin-top: var(--s8); text-align: center; font-size: var(--f-md); color: var(--text-2);
}
.mship-pay { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--f-xl); color: var(--text); }
.mship-honest {
  display: inline-flex; align-items: flex-start; gap: var(--s2); max-width: 640px;
  margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--mship-glass-line); background: var(--glass-2);
  font-size: var(--f-sm); color: var(--text-2); text-align: left; line-height: 1.6;
}
.mship-honest svg { flex: 0 0 auto; margin-top: 3px; color: var(--text-3); }

@media (max-width: 1180px) {
  .mship-grid { gap: var(--s4); }
  .mcard-in { padding: var(--s5); }
  .mcard-mk { width: 100px; height: 100px; }
  .mcard-ttl h2 { font-size: var(--f-xl); }
}
/* 폰 · 좁은 태블릿 — 카드가 한 줄에 하나 */
@media (max-width: 900px) {
  .mship-hd { align-items: stretch; }
  .mship-side { align-items: stretch; width: 100%; }
  .mship-usdt { align-self: flex-start; }
  .mship-seg { width: 100%; }
  .mship-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .mcard-mk { width: 112px; height: 112px; }
}
@media (max-width: 640px) {
  .mship { padding: var(--s6) 0 var(--s8); }
  .mship-ttl h1 { font-size: var(--f-3xl); }
  .mship-ttl p { font-size: var(--f-md); }
  .mship-pd { min-height: 52px; padding: 4px 2px; }
  .mship-pd b { font-size: var(--f-md); }
  .mship-pd em { font-size: var(--f-xs); }
  .mcard-mk { width: 88px; height: 88px; }
  .mcard-join { padding: 0 var(--s8); }
  .mship-pay { font-size: var(--f-lg); }
}
@media (max-width: 360px) {
  .mcard-in { padding: var(--s4); }
  .mcard-mk { width: 72px; height: 72px; }
  .mship-pd em { font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; }
}

/* 결제 안내 창 */
.mpay { display: flex; flex-direction: column; gap: var(--s3); }
.mpay-step { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: var(--f-md); }
.mpay-step:first-child { margin-top: 0; }
.mpay-no {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-fg); font-size: var(--f-xs); font-weight: 800;
}
.mpay-sum {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2);
}
.mpay-sum.mc-premium { border-color: var(--mship-premium-line); }
.mpay-sum.mc-pro { border-color: var(--mship-pro-line); }
.mpay-sum.mc-max { border-color: var(--mship-max-line); }
.mpay-sum .grow { display: flex; flex-direction: column; min-width: 0; }
.mpay-mk { line-height: 0; }
.mpay-mk img { width: 44px; height: 44px; }
.mpay-amt { display: flex; align-items: baseline; gap: 4px; font-weight: 800; }
.mpay-amt b { font-size: var(--f-2xl); }
.mpay-nets { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mpay-nets .chip { min-height: 40px; }
.mpay-addrbox {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px dashed var(--line-3); background: var(--surface-2);
}
.mpay-addr-l { font-size: var(--f-sm); font-weight: 700; color: var(--text-3); }
.mpay-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--f-lg); font-weight: 700;
  color: var(--text); line-height: 1.45; word-break: break-all; overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all;
}
.mpay-amt-in { color: var(--text); }
.mpay-tx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mpay-err { font-size: var(--f-sm); font-weight: 700; color: var(--danger-fg); }
.mpay-honest { font-size: var(--f-xs); }
/* ①/② 결제 방법 고르기(2026-11-27) — 줄 하나가 라디오 하나 · 고른 줄만 테두리 강조 · 손가락 자리 44px 이상 */
.mpay-opt { display: flex; align-items: flex-start; gap: var(--s3); min-height: var(--ctl-h); padding: var(--s3) var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.mpay-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.mpay-opt input { margin-top: 3px; flex: 0 0 auto; }
.mpay-opt .grow { min-width: 0; }
.mpay-opts { margin: var(--s2) 0; }
.mnudge, .mwp { margin: 0; }
/* 내 등록 송금 지갑 — 받는 주소(점선 칸)와 헷갈리지 않게 실선 칸 */
.mpay-from {
  display: flex; flex-direction: column; gap: var(--s1); min-width: 0;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface);
}
.mpay-addr-from { font-size: var(--f-md); }
/* 빨간 알림줄 — 되찾을 수 없는 실수를 막는 한 줄에만 */
.note-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 38%, transparent); color: var(--danger-fg); }
.note-danger .ni { color: var(--danger); }
@media (max-width: 860px) { .mpay-tx { font-size: var(--f-input-touch, 16px); } }

/* 등급 딱지 — 마크 + PREMIUM · PRO · MAX (ui.js U.mshipBadge). 예전 .badge-premium(보라) 위에 등급 색을 덮는다 */
.badge.badge-mship { gap: 3px; padding-left: 4px; }
.badge-mship .mship-mk { flex: 0 0 auto; width: var(--mship-mark-sm); height: var(--mship-mark-sm); }
.badge-mship.bm-premium { color: var(--mship-premium); background: var(--mship-premium-soft); border-color: var(--mship-premium-line); }
.badge-mship.bm-pro { color: var(--mship-pro); background: var(--mship-pro-soft); border-color: var(--mship-pro-line); }
.badge-mship.bm-max { color: var(--mship-max); background: var(--mship-max-soft); border-color: var(--mship-max-line); }

/* 「프리미엄 물품 강조」 — 멤버십 판매자의 매물 카드는 등급 색의 **은은한** 테두리 빛만(광고판처럼 만들지 않는다) */
.gcard.m-premium { border-color: var(--mship-premium-line); box-shadow: 0 0 0 1px var(--mship-premium-soft), 0 8px 24px -16px var(--mship-premium-line); }
.gcard.m-pro { border-color: var(--mship-pro-line); box-shadow: 0 0 0 1px var(--mship-pro-soft), 0 8px 24px -16px var(--mship-pro-line); }
.gcard.m-max { border-color: var(--mship-max-line); box-shadow: 0 0 0 1px var(--mship-max-soft), 0 8px 24px -16px var(--mship-max-line); }
.gcard.m-premium:hover { border-color: var(--mship-premium); }
.gcard.m-pro:hover { border-color: var(--mship-pro); }
.gcard.m-max:hover { border-color: var(--mship-max); }

/* 판매자 프로필 — 꾸민 배경 띠(4:1) · 대표 매물 · 「멤버십 안내」 작은 링크 */
.spcover {
  position: relative; aspect-ratio: 4 / 1; max-height: 220px; width: 100%; margin-bottom: var(--s5); overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface-2);
}
/* 그림을 못 받으면(c7~c12 를 아직 안 넣었거나) — 한 줄 소개가 없으면 띠를 통째로 감추고, 있으면 그림 없는 띠로 남긴다 */
.spcover:not(.has-tag):has(> img.is-broken) { display: none; }
.spcover > img.is-broken { display: none; }
.spcover > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sppins { margin-top: var(--s5); }
.trustwhy .tw-more {
  justify-self: start; display: inline-flex; align-items: center; gap: 2px;
  font-size: var(--f-xs); font-weight: 700; color: var(--text-3);
}
.trustwhy .tw-more:hover { color: var(--accent-fg); }

/* 내정보 — 「매물을 더 잘 보이게」의 멤버십 길 · 「판매 페이지 꾸미기」 */
.mshipcta { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.mshipcta:hover { border-color: var(--line-3); }
.mshipcta .grow { min-width: 0; flex: 1 1 220px; }
.mshipcta-mk { display: flex; flex: 0 0 auto; }
.mshipcta-mk .mship-mk { width: 36px; height: 36px; margin-right: -6px; }
.mpg-lock a { color: var(--accent-fg); }
.mpg-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.mpg-cov {
  /* width: 100% · min-width: 0 — 비율(4:1) + 최소 높이 40px 가 폭 160px 를 만들어(비율이 있는 칸은 늘어나지 않고 높이에서 폭을 잰다),
     320px 폭의 두 칸(119px)을 밀어내 화면이 옆으로 밀렸다. 칸 폭에 맞추고, 좁으면 높이만 40px 를 지킨다 */
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 1; overflow: hidden; min-height: 40px; width: 100%; min-width: 0;
  border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--surface-3);
  color: var(--text-3); font-size: var(--f-sm); font-weight: 700;
}
.mpg-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mpg-cov:hover { border-color: var(--line-3); }
.mpg-cov.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mpg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s2); max-height: 380px; overflow: auto; }
.mpg-it {
  display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 64px; padding: var(--s2);
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
}
.mpg-it:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.mpg-it input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }
.mpg-it .gimg.mpg-img { flex: 0 0 auto; width: 48px; border-radius: var(--r-sm); }
.mpg-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--f-sm); }
.mpg-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
@media (max-width: 640px) { .mpg-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 판매 페이지 꾸미기 늘리기 (2026-11-15 사장님 지시 「프로 멤버십부터 판매자 페이지 꾸밀 수 있게」) ──────────
   pages-user.js 의 decoForm · bindDeco(창 · 내정보 칸) · P.seller(배경 띠 · 한 줄 소개 · 테마). 색은 tokens.css 의 --deco-*.
   · 배경 띠 맨 위 오른쪽(.sp-decobar) — 내 페이지에만 「페이지 꾸미기」 / 「프로 멤버십부터 …」 작은 안내.
   · 띠 구석 「PRO 멤버십 꾸미기」(.sp-decotag) — 정직 표시. 한 줄 소개(.sp-tag)는 그림 위 어두운 겹(--deco-scrim) 위 흰 글씨.
   · 그림 없이 한 줄 소개만 있으면 낮은 띠(.no-img). 그림 칸이 aspect-ratio 라 폰에서 글이 밀리지 않게 has-tag 는 최소 높이를 둔다. */
.sp-decobar { display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); margin-bottom: var(--s3); min-width: 0; }
.sp-decohint { font-size: var(--f-sm); text-align: right; min-width: 0; }
.sp-decohint a { color: var(--accent-fg); font-weight: 700; }
.spcover.has-tag { min-height: 116px; }
.spcover.no-img { aspect-ratio: auto; min-height: 84px; background: linear-gradient(135deg, var(--deco-soft, var(--surface-3)), var(--surface-2) 70%); }
.spcover.has-tag:has(> img.is-broken) { aspect-ratio: auto; min-height: 84px; }
.spcover.has-tag:not(.no-img)::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--deco-scrim);
}
.spcover.has-tag:has(> img.is-broken)::after { display: none; }
.sp-decotag {
  position: absolute; top: var(--s2); left: var(--s2); z-index: 2; max-width: calc(100% - 16px);
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--deco-chip-line); background: var(--deco-chip);
  color: var(--deco-on-art); font-size: var(--f-xs); font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-tag {
  position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s3); z-index: 2; margin: 0;
  color: var(--deco-on-art); font-weight: 800; font-size: clamp(15px, 2.2vw, 22px); line-height: 1.35; overflow-wrap: anywhere;
}
.spcover.no-img .sp-tag, .spcover.has-tag:has(> img.is-broken) .sp-tag {
  position: static; padding: calc(var(--s4) + 24px) var(--s4) var(--s4); color: var(--text);
}
.spcover.no-img .sp-decotag, .spcover:has(> img.is-broken) .sp-decotag { background: var(--surface-3); color: var(--text-2); border-color: var(--line-2); }

/* 꾸미기 테마 — 지금 고른 색을 --deco · --deco-soft · --deco-line 으로 펴 둔다(판매자 페이지 .wrap · 꾸미기 조각 .deco-ed · 예시 창) */
.deco-t-blue { --deco: var(--deco-blue); --deco-soft: var(--deco-blue-soft); --deco-line: var(--deco-blue-line); }
.deco-t-purple { --deco: var(--deco-purple); --deco-soft: var(--deco-purple-soft); --deco-line: var(--deco-purple-line); }
.deco-t-pink { --deco: var(--deco-pink); --deco-soft: var(--deco-pink-soft); --deco-line: var(--deco-pink-line); }
.deco-t-green { --deco: var(--deco-green); --deco-soft: var(--deco-green-soft); --deco-line: var(--deco-green-line); }
.deco-t-gold { --deco: var(--deco-gold); --deco-soft: var(--deco-gold-soft); --deco-line: var(--deco-gold-line); }
.deco-t-silver { --deco: var(--deco-silver); --deco-soft: var(--deco-silver-soft); --deco-line: var(--deco-silver-line); }
/* 쓰는 곳은 셋뿐이다 — 배경 띠 아래 테두리 빛 · 「대표 매물」 제목 줄 · 팔로우 단추. 딱지(신뢰 표시)에는 쓰지 않는다.
   ★ 대표 매물 카드의 테두리는 칠하지 않는다(2026-11-15 교차검증) — 대표 매물은 늘 PRO · MAX 판매자의 것이라 카드에 등급 테두리
     (.gcard.m-pro · .m-max)가 있는데, 테마 색 규칙(0,3,0)이 그것(0,2,0)을 늘 덮어 보라 테마의 PRO 카드가 MAX 카드처럼 보였다 */
.deco-on .spcover { border-color: var(--deco-line); border-bottom: 2px solid var(--deco); box-shadow: 0 12px 28px -20px var(--deco); }
.deco-on .sppins .sec-hd { border-bottom: 2px solid var(--deco-line); padding-bottom: var(--s2); }
.deco-on .sppins .sec-hd h2 { color: var(--deco); }
.deco-on .profile-hd .btn[data-act="follow"] { border-color: var(--deco-line); background: var(--deco-soft); color: var(--deco); }

/* 꾸미기 조각(창 · 내정보 칸) */
.deco-prev { margin-bottom: 0; }
/* 「이렇게 보입니다」 띠는 그림이 없어도 같은 높이 — 배경을 고를 때마다 아래 칸이 밀려 다음 누르기가 빗나갔다.
   폰에서는 4:1 이 84px · 116px 최소 높이보다 낮아, 상태(그림 있음/없음 × 한 줄 소개 있음/없음)마다 75~116px 로 달랐다 —
   네 상태 모두 같은 최소 높이(116px · .spcover.has-tag 와 같다)를 준다(2026-11-15 교차검증) */
.deco-prev.no-img { aspect-ratio: 4 / 1; }
.deco-prev, .deco-prev.no-img, .deco-prev.has-tag, .deco-prev.has-tag:has(> img.is-broken) { min-height: 116px; }
/* 아직 안 넣은 그림(c7~c12)을 골라도 띠가 사라지지 않게 — 판매자 페이지와 달리 여기서는 고르는 중이다 */
.deco-prev:not(.has-tag):has(> img.is-broken) { display: block; }
.mpg-cov img.is-broken { display: none; }
/* 「내 그림 올리기」(2026-11-15 사장님 지시) — 파일 고르기 · 규격 안내 한 블록 · 오류 한 줄 · 안전 영역 점선 · 올린 그림 띠(<picture>) */
.deco-up { padding: var(--s3); border-radius: var(--r-md); border: 1px dashed var(--line-2); background: var(--surface-2); min-width: 0; }
.deco-upbtn { position: relative; cursor: pointer; }
.deco-upbtn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.deco-upbtn.is-busy { opacity: .6; pointer-events: none; }
.deco-upst { font-size: var(--f-sm); min-width: 0; }
.deco-spec { font-size: var(--f-sm); color: var(--text-2); min-width: 0; }
.deco-spec ul { display: flex; flex-direction: column; gap: 2px; margin: var(--s1) 0 0; padding-left: var(--s4); list-style: disc; }
.deco-spec li { overflow-wrap: anywhere; }
.mpg-mine .mpg-n { position: absolute; top: 2px; left: 2px; z-index: 1; padding: 0 6px; border-radius: 999px;
  background: var(--deco-chip); color: var(--deco-on-art); font-size: var(--f-xs); }
.mpg-cov[hidden] { display: none; }
/* 안전 영역 — 권장 크기 그림에서 어느 화면에서도 보이는 가운데(src/deco.js COVER_SPEC safeW · safeH 와 같은 비율). 그림 위 글자색 토큰 */
.deco-safe {
  position: absolute; left: 20%; right: 20%; top: 15%; bottom: 15%; z-index: 2; pointer-events: none;
  border: 2px dashed var(--deco-on-art); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--deco-chip);
}
.deco-safe[hidden] { display: none; }
.deco-safe > span {
  position: absolute; top: 2px; right: 4px; padding: 0 6px; border-radius: 999px;
  background: var(--deco-chip); color: var(--deco-on-art); font-size: var(--f-xs); font-weight: 700;
}
.spcover > picture { position: absolute; inset: 0; display: block; }
.spcover > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spcover > picture > img.is-broken { display: none; }
.spcover:not(.has-tag):has(> picture > img.is-broken) { display: none; }
.spcover.has-tag:has(> picture > img.is-broken) { aspect-ratio: auto; min-height: 84px; }
.spcover.has-tag:has(> picture > img.is-broken)::after { display: none; }
.spcover.has-tag:has(> picture > img.is-broken) .sp-tag { position: static; padding: calc(var(--s4) + 24px) var(--s4) var(--s4); color: var(--text); }
.deco-ths { display: flex; flex-wrap: wrap; gap: var(--s2); }
.deco-th {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s3);
  border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-size: var(--f-sm); font-weight: 700;
}
.deco-th:hover { border-color: var(--line-3); }
.deco-th.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.deco-dot { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--surface-3); }
.deco-dot.dt-blue { background: var(--deco-blue); }
.deco-dot.dt-purple { background: var(--deco-purple); }
.deco-dot.dt-pink { background: var(--deco-pink); }
.deco-dot.dt-green { background: var(--deco-green); }
.deco-dot.dt-gold { background: var(--deco-gold); }
.deco-dot.dt-silver { background: var(--deco-silver); }
.deco-tagrow { align-items: center; flex-wrap: nowrap; }
.deco-tagrow .input { flex: 1 1 auto; min-width: 0; }
.deco-cnt { flex: 0 0 auto; }
.deco-cnt.is-over { color: var(--danger-fg); font-weight: 700; }
.deco-err { margin: 0; color: var(--danger-fg); font-size: var(--f-sm); font-weight: 700; }
.deco-ord {
  flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: var(--f-xs); font-weight: 800;
}
.deco-ord:empty { visibility: hidden; }
@media (hover: none) { .deco-th { min-height: 44px; } }
@media (max-width: 640px) { .deco-tagrow .input { font-size: var(--f-input-touch); } }

/* 멤버십 화면 프로 카드의 「예시 보기」 · 예시 창 */
.mcard-ex {
  pointer-events: auto; margin-left: auto; flex: 0 0 auto; min-height: 32px; padding: 2px 8px;
  border: 1px solid var(--mship-glass-line); border-radius: 999px; background: var(--mship-glass);
  color: var(--mship-c); font-size: var(--f-xs); font-weight: 700;
}
.mcard-ex:hover { border-color: var(--mship-c); }
/* 손가락 기기 44px — 카드 자체가 고르는 단추라, 빗누르면 「예시 보기」 대신 PRO 카드가 골라졌다(2026-11-15 교차검증) */
@media (hover: none) { .mcard-ex { min-height: 44px; padding: 2px 12px; } }
.deco-ex .spcover { margin-bottom: 0; }
.deco-ex-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.deco-ex-row span { aspect-ratio: 4 / 5; border-radius: var(--r-md); border: 1px solid var(--deco-line); background: var(--surface-2); }
.deco-ex-list { display: flex; flex-direction: column; gap: var(--s1); padding-left: var(--s4); list-style: disc; font-size: var(--f-sm); }
.au-tagline { overflow-wrap: anywhere; }

/* 첫 화면 「MAX 멤버 판매자」 — 맥스 멤버십의 「메인 홍보 영역 순환 노출」. 저절로 움직이지 않는다 */
.mxp-ad {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: var(--s2); vertical-align: middle;
  border-radius: var(--r-xs); border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--text-3);
}
/* 카드 하트 — 그림 오른쪽 위(2026-11-26 · 예전 「움직임」 표시 자리) */
.gimg > .gfoot.gfav-top { top: var(--gfoot-pad); bottom: auto; left: auto; }
/* 첫 화면 「MAX 멤버 매물」 줄(2026-11-26 다시 정함) — 일반 카드 · MAX 빛 테두리 · 넘치면 천천히 흐른다(움직임은 motion.css) */
.mxs { overflow: hidden; margin: 0 calc(var(--s2) * -1); padding: var(--s3) var(--s2); }
.mxs.is-flow { -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
.mxs-track { display: flex; gap: var(--s4); width: max-content; }
.mxs .gcard { flex: 0 0 220px; width: 220px;
  border-color: var(--mship-max-line);
  box-shadow: 0 0 0 1px var(--mship-max-line), 0 0 22px var(--mship-max-soft), 0 0 46px var(--mship-max-soft); }
.mxs .gcard:hover { box-shadow: 0 0 0 1px var(--mship-max), 0 0 26px var(--mship-max-line); }
@media (max-width: 640px) { .mxs .gcard { flex-basis: 168px; width: 168px; } }
@media (prefers-reduced-motion: reduce) { .mxs { overflow-x: auto; } }
.ld-maxpin { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); }
.ld-maxpin-b { align-self: flex-start; border-color: var(--mship-max-line); color: var(--mship-max); }
.ld-maxpin-b.is-on { background: var(--mship-max-soft); }
.ld-maxpin p, .ld-maxpin-hint { margin: 0; font-size: var(--f-xs); }
.ld-maxpin-hint { padding-top: var(--s2); }
/* 2026-11-26 다시 꾸밈 — MAX 빛 테두리 묶음 · 큰 매물 카드(ui.giftCard noSeller) · 한 명이면 가로 배치 */
.mxp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.mxp-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.mxp {
  display: flex; flex-direction: column; gap: var(--s4); min-width: 0; padding: var(--s5);
  border-radius: var(--r-xl); border: 1px solid var(--mship-max-line);
  background: linear-gradient(180deg, var(--mship-max-soft), transparent 160px), var(--surface);
  box-shadow: 0 0 0 1px var(--mship-max-soft) inset;
}
.mxp-hd { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.mxp-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; flex: 1 1 auto; color: var(--text); text-decoration: none; }
.mxp-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.mxp-nm { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.mxp-nm b { font-size: var(--f-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mxp-stat { font-size: var(--f-sm); color: var(--text-2); }
.mxp-rt { display: inline-flex; align-items: center; gap: var(--s1); }
.mxp-rt b { color: var(--text); }
.mxp-who:hover .mxp-nm b { color: var(--accent-fg); }
.mxp-all { flex: 0 0 auto; border-color: var(--mship-max-line); color: var(--mship-max); }
.mxp-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.mxp-crown { display: inline-flex; vertical-align: middle; margin-right: var(--s2); }
@media (min-width: 1100px) {
  .mxp-grid.is-one .mxp { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; gap: var(--s5); }
  .mxp-grid.is-one .mxp-hd { flex-direction: column; align-items: flex-start; }
  .mxp-grid.is-one .mxp-who { flex-direction: column; align-items: flex-start; }
  .mxp-grid.is-one .mxp-items { grid-template-columns: repeat(3, minmax(0, 220px)); }
}
.mxp-info { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); grid-column: 1 / -1; }
.mxp-info-h { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); }
.mxp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.mxp-tile { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; padding: var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.mxp-tile .k { font-size: var(--f-xs); color: var(--text-3); }
.mxp-tile .v { font-size: var(--f-lg); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxp-tile .mxp-rt { font-size: var(--f-lg); }
.mxp-note { margin: 0; font-size: var(--f-xs); }
@media (min-width: 1100px) {
  .mxp-grid.is-one .mxp-items.has-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mxp-grid.is-one .mxp-items.has-info.n1 .mxp-info { grid-column: 2 / -1; }
  .mxp-grid.is-one .mxp-items.has-info.n2 .mxp-info { grid-column: 3 / -1; }
  .mxp-grid.is-one .mxp-items.has-info.n2 .mxp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { .mxp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .mxp { padding: var(--s4); }
  .mxp-hd { flex-wrap: wrap; }
  .mxp-all { width: 100%; justify-content: center; }
  .mxp-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mxp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* (끝) 멤버십 */

/* ── 관리자 · 멤버십 (2026-11-15 · pages-admin.js 의 상품·결제 「멤버십」 칸 · 「멤버십 신청」 탭) ──
   색은 쓰지 않는다(tokens.css 값을 그대로 쓰는 기존 .badge · .note · .dtable 모양을 빌린다). */
/* 상품·결제 — 멤버십 칸은 가격 표 · 주소 넷이 들어가 길다. 카드 줄(.prodgrid)의 한 줄을 통째로 쓴다
   (300px 칸에 두면 6 · 12개월 칸이 옆으로 밀려 안 보였다) */
.prodgrid .mship-adm { grid-column: 1 / -1; }
/* 3×3 가격 표: 칸 안 입력은 표 칸 폭을 따른다. 표는 640px 바닥(.tblwrap > table) 대신 460px —
   그보다 좁은 폰에서만 .tblwrap 이 옆으로 민다 */
.tblwrap > table.mship-prices { min-width: 460px; }
.mship-prices .input { width: 100%; min-width: 88px; }
/* 주소는 한 글자씩 견줘 보는 값이라 고정폭 글꼴로 */
.mship-adm [data-set^="usdt_addr_"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mship-prices td { vertical-align: top; }
.mship-calc { margin-top: 4px; font-size: var(--f-xs); white-space: nowrap; }
/* 등급 딱지 안의 마크 그림 — 글자 앞에 붙는다 */
.badge-premium .mship-mark, .badge-premium img { margin-right: 4px; vertical-align: middle; }
/* 멤버십 신청 표 — 받는 주소(줄인 것)는 줄바꿈하지 않는다 */
.mship-reqs tbody tr { cursor: pointer; }
.mship-reqs td { vertical-align: top; }

/* ── 기프티톡 가이드 #/howto (2026-11-15 사장님 지시 · pages-howto.js) ─────────────────────────────
   색은 tokens.css 의 이름만 쓴다(다크 · 화이트 두 벌이 저절로 맞는다). 움직임은 motion.css.
   · 폰이 먼저 — 차례는 옆으로 미는 칩 줄(그 줄 안에서만 민다 · 화면은 밀리지 않는다), 1100px 위에서는 왼쪽에 붙는 차례(sticky).
   · 본문 폭은 넓은 화면에서 760px 까지(줄 길이) · 본문 글자 16px · 줄 높이 1.6.
   · 그림(public/img/guide)은 화이트 화면에서도 어두운 그림이다 — 그림 칸은 둥근 모서리 · 그림자만, 바탕은 그림 그대로.
     자리를 미리 잡는다(aspect-ratio + img 의 width/height) · 못 받으면 칸을 감춘다(ui.js 의 hw-img → .is-broken).
   · 위험한 장(6~10)은 주의 색 + 「주의」 글자 + 그림 — 색만으로 가르지 않는다.
   · 차례로 옮겨 가도 붙은 머리말에 제목이 가리지 않게 장마다 scroll-margin-top. */
.hw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.hw-body { min-width: 0; display: flex; flex-direction: column; gap: var(--s6); }
.hw-toc { min-width: 0; }
.hw-toc-t { display: none; }
.hw-toc-l { position: relative; display: flex; gap: var(--s2); overflow-x: auto; margin: 0; padding: 2px 2px var(--s2);
  list-style: none; scrollbar-width: none; overscroll-behavior-x: contain; }
.hw-toc-l::-webkit-scrollbar { display: none; }
.hw-toc-l > li { flex: 0 0 auto; }
.hw-toc-a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3);
  border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: var(--f-sm); font-weight: 700; white-space: nowrap; cursor: pointer; }
.hw-toc-a:hover { color: var(--text); border-color: var(--line-3); }
.hw-toc-x { min-width: 0; overflow-wrap: anywhere; }
.hw-toc-a.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.hw-toc-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text-3); font-size: var(--f-xs); }
.hw-toc-a.is-warn .hw-toc-n { background: var(--warn-soft); color: var(--warn-fg); }
.hw-toc-a.is-danger .hw-toc-n { background: var(--danger-soft); color: var(--danger-fg); }
.hw-toc-a.on .hw-toc-n { background: var(--accent); color: var(--on-accent); }
@media (hover: none) { .hw-toc-a { min-height: 44px; } }
/* 묶음 머리(사이트 정비 R4 · 설계 97 3.2 — 시작 · 일반 매물 · 자산 기능 · 안전 · 마무리) — 넓은 화면의 옆 차례에만. 폰의 칩 줄에는 세우지 않는다 */
.hw-toc-g { display: none; }
@media (min-width: 1100px) {
  .hw-layout { grid-template-columns: 200px minmax(0, 760px); gap: var(--s8); align-items: start; }
  /* 장이 스물까지 늘면 차례가 화면보다 길다 — 붙은 채로 차례 안에서 굴린다 */
  .hw-toc { position: sticky; top: calc(var(--header-h) + var(--s4)); max-height: calc(100vh - var(--header-h) - var(--s8)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .hw-toc-g { display: block; margin: var(--s3) 0 2px; padding: 0 var(--s2); font-size: var(--f-xs); font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
  .hw-toc-l > .hw-toc-g:first-child { margin-top: 0; }
  .hw-toc-t { display: block; margin: 0 0 var(--s2); padding: 0 var(--s2); font-size: var(--f-xs); color: var(--text-3); letter-spacing: .04em; }
  .hw-toc-l { flex-direction: column; overflow: visible; gap: 2px; padding: 0; }
  .hw-toc-a { width: 100%; min-height: 36px; padding: 6px var(--s2); border-color: transparent; background: none;
    border-radius: var(--r-sm); white-space: normal; text-align: left; }
  .hw-toc-a.on { border-color: transparent; background: var(--accent-soft); }
}

/* 장 하나 */
.hw-ch { scroll-margin-top: calc(var(--header-h) + var(--s4)); display: flex; flex-direction: column; gap: var(--s4); min-width: 0;
  padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.hw-ch.is-warn { border-color: var(--warn-line); }
.hw-ch.is-danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.hw-ch-hd { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.hw-ch-hd h2 { flex: 1 1 12em; min-width: 0; margin: 0; font-size: var(--f-xl); line-height: 1.35; color: var(--text); outline: none; }
.hw-ch-hd h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
.hw-no { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--info-fg); font-weight: 800; }
.hw-ch.is-warn .hw-no { background: var(--warn-soft); color: var(--warn-fg); }
.hw-ch.is-danger .hw-no { background: var(--danger-soft); color: var(--danger-fg); }
.hw-flag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full);
  font-size: var(--f-xs); font-weight: 800; background: var(--danger-soft); color: var(--danger-fg); }
.hw-ch.is-warn .hw-flag { background: var(--warn-soft); color: var(--warn-fg); }
.hw-fig { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--art-sky-1); box-shadow: var(--sh-2); }
.hw-fig.is-broken { display: none; }
.hw-fig .hw-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hw-lead { margin: 0; font-size: var(--f-lg); line-height: 1.6; font-weight: 600; color: var(--text); }
.hw-ch p, .hw-list, .hw-dots, .hw-check { font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.hw-ch p { margin: 0; }
.hw-sub { margin: 0; font-size: var(--f-lg); color: var(--text); }
.hw-list, .hw-check { display: flex; flex-direction: column; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.hw-list > li, .hw-check > li { display: flex; align-items: flex-start; gap: var(--s3); min-width: 0; }
.hw-list > li > span:last-child, .hw-check > li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.hw-ic { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); line-height: 0;
  background: var(--surface-2); color: var(--accent-fg); }
.hw-ch.is-warn .hw-list .hw-ic { background: var(--warn-soft); color: var(--warn-fg); }
.hw-ch.is-danger .hw-list .hw-ic { background: var(--danger-soft); color: var(--danger-fg); }
.hw-check .hw-ic { width: 26px; height: 26px; border-radius: var(--r-full); background: var(--ok-soft); color: var(--ok-fg); }
.hw-dots { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 1.1em; overflow-wrap: anywhere; }
.hw-dots > li::marker { color: var(--text-4); }
.hw-dots b, .hw-steps b, .hw-list b { color: var(--text); }

/* 차례 있는 단계(2장 · 11장) */
.hw-steps { counter-reset: hw; display: flex; flex-direction: column; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.hw-steps > li { counter-increment: hw; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 36px); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); font-size: 1rem; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.hw-steps > li::before { content: counter(hw); position: absolute; left: var(--s3); top: var(--s3); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: var(--f-sm); font-weight: 800; }

/* 상자 · 「이것만은 꼭」 · 알림 한 줄 · 인용 */
.hw-box { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.hw-box-t { display: flex; align-items: center; gap: 6px; font-size: var(--f-base); color: var(--text); }
.hw-box-t svg { flex: 0 0 auto; color: var(--accent-fg); }
.hw-must { padding: var(--s4); border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--accent-soft); }
.hw-must-t { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--info-fg); }
.hw-ch .hw-must p { color: var(--text); font-weight: 600; }
.hw-must.is-danger { border-color: color-mix(in srgb, var(--danger) 38%, transparent); background: var(--danger-soft); }
.hw-must.is-danger .hw-must-t { color: var(--danger-fg); }
/* 수수료 · 비용 장(사이트 정비 R4) — 이름표 | 값(서버가 준 판 값 · ui.gram) */
.hw-fees { display: flex; flex-direction: column; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hw-fees > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.hw-fees dt { min-width: 0; font-size: var(--f-md); color: var(--text-2); }
.hw-fees dd { min-width: 0; margin: 0; font-size: var(--f-md); font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.hw-note { display: flex; align-items: flex-start; gap: var(--s2); margin: 0; font-size: var(--f-md); line-height: 1.6; color: var(--text-2); }
.hw-note > svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent-fg); }
.hw-note.is-strong { padding: var(--s3) var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--text); }
.hw-ch .hw-quote { margin: 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--warn); border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--warn-soft); color: var(--warn-fg); font-size: 1rem; font-weight: 700; line-height: 1.6; }
.hw-fine, .hw-miss { font-size: var(--f-sm); }
.hw-ch .hw-fine, .hw-ch .hw-miss { font-size: var(--f-sm); color: var(--text-3); }
.hw-miss { display: flex; align-items: center; gap: 6px; }

/* 「이런 말을 들으면 멈추세요」 말풍선 */
.hw-say { display: flex; flex-direction: column; gap: var(--s3); }
.hw-say-t { display: flex; align-items: center; gap: 6px; color: var(--danger-fg); }
.hw-ch.is-warn .hw-say-t { color: var(--warn-fg); }
.hw-bubs { display: flex; flex-direction: column; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.hw-bub { align-self: flex-start; max-width: min(100%, 34em); padding: 10px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); background: var(--surface-2);
  font-size: var(--f-base); line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.hw-ch.is-danger .hw-bub { border-color: color-mix(in srgb, var(--danger) 32%, var(--line-2)); }
.hw-ch.is-warn .hw-bub { border-color: var(--warn-line); }
.hw-bub q { quotes: '\201C' '\201D'; }

/* (운영팀 중개 차례 .hw-flow — 2026-11-16 중개서비스를 걷으며 가이드 1장의 상자와 함께 뺐다) */

/* 5장 — 마크 네 갈래 · 등급 조건 */
.hw-axes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 720px) {
  .hw-axes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-axes > .hw-axis:first-child { grid-column: 1 / -1; }
}
.hw-axis { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.hw-axis-hd { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.hw-axis-hd b { font-size: var(--f-base); color: var(--text); }
.hw-who { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--r-full); font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
.hw-samples { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.hw-tro { display: inline-flex; align-items: center; gap: 4px; font-size: var(--f-sm); color: var(--text-2); }
.hw-axis .hw-dots { font-size: var(--f-md); }
.hw-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.hw-tier { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hw-tier-b { line-height: 0; }
/* 5장 조건 카드의 큰 딱지(그림 28px + 이름 · 2026-11-15) — 줄 높이 0 을 물려받지 않게 · 카드 폭을 넘지 않게 */
.hw-tier-b .tbadge { line-height: 1.2; }
.hw-tier-c { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: var(--f-sm); line-height: 1.5; color: var(--text-2); }
.hw-more { display: inline-flex; align-items: center; gap: 2px; font-size: var(--f-sm); font-weight: 700; color: var(--accent-fg); }

/* 7장 — 삼자사기 흐름도(HTML · 그림 속 글자에 기대지 않는다) */
.hw-tri { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.hw-tri-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.hw-p { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: var(--s3) var(--s2);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: center; }
.hw-p b { font-size: var(--f-md); color: var(--text); overflow-wrap: anywhere; }
.hw-p > span:last-child { font-size: var(--f-xs); line-height: 1.4; color: var(--text-3); overflow-wrap: anywhere; }
.hw-p-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full); line-height: 0; }
.hw-p.is-scam { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.hw-p.is-seller .hw-p-ic, .hw-tag.is-seller { background: var(--ok-soft); color: var(--ok-fg); }
.hw-p.is-scam .hw-p-ic, .hw-tag.is-scam { background: var(--danger-soft); color: var(--danger-fg); }
.hw-p.is-buyer .hw-p-ic, .hw-tag.is-buyer { background: var(--accent-soft); color: var(--info-fg); }
.hw-tri-steps { counter-reset: hwt; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .hw-tri-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hw-tri-steps > li { counter-increment: hwt; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--s3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hw-tri-ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hw-tri-ft::before { content: counter(hwt); display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text-2); font-size: var(--f-xs); font-weight: 800; }
.hw-tag { padding: 3px 9px; border-radius: var(--r-full); font-size: var(--f-xs); font-style: normal; font-weight: 800; }
.hw-arrow { line-height: 0; color: var(--text-3); }
.hw-what { margin-left: auto; font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
.hw-ch .hw-tri-steps p { font-size: var(--f-md); }
.hw-tri-end { padding: var(--s3); border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger-fg); }
.hw-tri-end b { display: flex; align-items: center; gap: 6px; }
.hw-ch .hw-tri-end p { margin-top: 4px; font-size: var(--f-md); color: var(--text); }

/* 바로가기 · 11장 단추 · 공식 마켓 · 맨 아래 */
.hw-go, .hw-acts, .hw-mk { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hw-acts .btn { max-width: 100%; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: left; }
.hw-end { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.hw-end p { margin: 0; font-size: var(--f-md); line-height: 1.6; }
.hw-end > p:first-child { font-weight: 700; color: var(--text); }
.hw-wait { display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 480px) {
  .hw-ch { padding: var(--s4) var(--s3); }
  .hw-ch-hd h2 { font-size: var(--f-lg); }
  .hw-tri { padding: var(--s3) var(--s2); }
}

/* 「처음이신가요?」 맨 위 카드 — 그림 가이드로 가는 길 하나 */
.hw-card { display: flex; align-items: center; gap: var(--s4); min-width: 0; margin: 0 0 var(--s5); padding: var(--s3);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--text); }
.hw-card:hover { border-color: var(--accent); }
.hw-card-img { flex: 0 0 auto; width: 128px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md);
  background: var(--art-sky-1); box-shadow: var(--sh-1); }
.hw-card-img.is-broken { display: none; }
.hw-card-t { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hw-card-t b { font-size: var(--f-base); }
.hw-card-go { flex: 0 0 auto; line-height: 0; color: var(--text-3); }
@media (max-width: 480px) { .hw-card { gap: var(--s3); } .hw-card-img { width: 84px; } }
/* (끝) 기프티톡 가이드 */

/* ── 결제 지갑 인증 · 내 멤버십 · 멤버십 신청 관리 (2026-11-15 사장님 요청서) ─────────────────────────
   내 멤버십 조각(G.mship.mineHtml)은 내정보 「내 멤버십」 카드와 멤버십 화면이 함께 쓴다. 긴 주소 · 해시는 중간에서 끊는다(320px). */
.mmine { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.mmine-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3) var(--s4); margin: 0; }
.mmine-r { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mmine-r dt { font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
.mmine-r dd {
  margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); min-width: 0;
  font-size: var(--f-md); color: var(--text); overflow-wrap: anywhere;
}
.mmine-on { color: var(--ok-fg); }
.mmine-off { color: var(--warn-fg); }
.mmine-pend {
  display: flex; flex-direction: column; gap: var(--s2); min-width: 0;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--warn-line); background: var(--warn-soft);
}
.mmine-pend p { margin: 0; }
.mwal {
  display: flex; flex-direction: column; gap: var(--s2); min-width: 0;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2);
}
.mwal-pend { padding-top: var(--s2); border-top: 1px dashed var(--line-2); }
/* 결제 지갑 단추는 영어 글자가 길다(「Change wallet (request registration again)」 307px) — 320 · 375 폭에서 카드 밖으로 나가
   /me 전체가 가로로 밀렸다(2026-11-15 1순위 교차검증). 단추 안에서 줄을 바꾼다 */
.mwal .btn { white-space: normal; height: auto; min-height: 32px; max-width: 100%; padding-top: var(--s1); padding-bottom: var(--s1); text-align: center; line-height: 1.3; }
.mwal-addr, .msd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--f-sm); font-weight: 700; line-height: 1.45;
  color: var(--text); word-break: break-all; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.mmine-hist summary { display: flex; align-items: center; gap: var(--s2); min-height: 36px; cursor: pointer; font-weight: 700; }
.mmine-hist[open] summary { margin-bottom: var(--s2); }
.mhist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mhist-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.mhist-i:last-child { border-bottom: 0; }
.mhist-i b { min-width: 0; overflow-wrap: anywhere; }
.mhist-why { font-size: var(--f-sm); font-weight: 700; color: var(--danger-fg); overflow-wrap: anywhere; }
.mymship { margin-bottom: var(--s4); }
.prodhd { margin-top: var(--s5); }
/* 신청을 받은 뒤의 사장님 문구 */
.mwait p { margin: 0; }
.mwait-ttl { font-size: var(--f-lg); }
.mwait-box > .grow { min-width: 0; }
/* 인증 신청 창의 세 번째 칸 — 결제 지갑 */
.vwallet .vw-box {
  padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); min-width: 0;
}
.vwallet .vw-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vwallet .vw-kind:empty { display: none; }
@media (max-width: 860px) { .vwallet .vw-addr, .msd-in { font-size: var(--f-input-touch, 16px); } }
/* 관리자 「인증 신청」의 지갑 줄 */
.admlist .vf-wal { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-top: 4px; }
/* 관리자 「멤버십 신청 관리」 — 검색 줄 · 상세 창 */
.ms-find { flex-wrap: wrap; }
.ms-find .input { flex: 1 1 220px; min-width: 0; }
.ms-find .select { flex: 0 1 auto; min-width: 0; }
.msd-sec { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.msd-sec h4 { margin: 0; font-size: var(--f-md); color: var(--text-2); }
.msd-dl { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.msd-r { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); min-width: 0; }
.msd-r:last-child { border-bottom: 0; }
.msd-r dt { font-size: var(--f-sm); font-weight: 700; color: var(--text-3); }
.msd-r dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; overflow-wrap: anywhere; font-size: var(--f-sm); }
.msd-ex { display: block; width: 100%; }
.msd-note { margin: 0; padding: var(--s2) var(--s3); }
.msd-checks { list-style: none; margin: 0; padding: 0; }
.msd-act { padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); }
.msd-act .vf-warn {
  margin: 0; padding: 3px 8px; border-radius: var(--r-xs); border-left: 3px solid var(--warn); background: var(--warn-soft);
  color: var(--warn-fg); font-size: var(--f-xs); font-weight: 800; white-space: normal; overflow-wrap: anywhere;
}
.msd .vf-warn { color: var(--warn-fg); font-weight: 700; }
.msd-ckbox { margin: 0; padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.msd-ckbox legend { padding: 0 var(--s1); font-size: var(--f-sm); font-weight: 800; color: var(--text-2); }
.msd-ck { align-items: flex-start; min-height: 32px; font-size: var(--f-sm); }
.msd-ck input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
/* ── 멤버십 등급 업그레이드 · 차액 결제 (2026-11-15 사장님 요청서 2) ─────────────────────────
   멤버십 화면의 상위 카드 한 줄 · 업그레이드 창의 ① 칸 · 관리자 「재확인 필요」 딱지와 까닭 · 재확인 칸 */
.badge-danger { color: var(--danger-fg); background: var(--danger-soft); border-color: var(--danger-line, var(--line-2)); }
.mcard-up { font-size: var(--f-sm); font-weight: 700; color: var(--text-2); overflow-wrap: anywhere; }
.mpay-head { min-width: 0; }
.mpay-head p { margin: 0; }
.mup-dl { padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); }
.mup-amt { font-size: var(--f-lg); }
.msd-rc { margin: 0; padding-left: 1.1em; font-size: var(--f-sm); overflow-wrap: anywhere; }
.msd-rcck { padding: var(--s2) var(--s3); border-radius: var(--r-md); border: 1px solid var(--danger-line, var(--line-2)); background: var(--danger-soft); }
.msd-ck span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .msd-r { grid-template-columns: 1fr; gap: 2px; } }
/* (끝) 결제 지갑 인증 · 내 멤버십 */
/* ── 삼자사기 점검 1순위 묶음 B — 신원 · 관리자 (2026-11-15) ─────────────────────────────
   비밀번호 한 번 더(G.askPassword — 열린 창 위에 한 겹) · TELEGRAM 배지의 확인 방법 · 인증 뒤 아이디 변경 사실 · 기본 비밀번호 띠 */
.ovl.ovl-pw { z-index: 210; }
.modal-pw { max-width: 420px; }
@media (max-width: 860px) { .ovl.ovl-pw { align-items: center; padding: var(--s4); } .modal-pw { border-radius: var(--r-lg); } }
.tgvia { display: inline-block; margin-left: 6px; font-size: var(--f-xs); font-weight: 600; color: var(--text-3); vertical-align: middle; white-space: nowrap; }
.tw-recheck { margin: var(--s2) 0 0; font-size: var(--f-xs); font-weight: 700; color: var(--warn-fg); overflow-wrap: anywhere; }
.adm-pwwarn { margin-bottom: var(--s4); }
.adm-pwwarn .btn { margin-left: var(--s2); }
.au-tgchg .muted2 { overflow-wrap: anywhere; }
/* ── 삼자사기 점검 1순위 묶음 D — 구매 요청 · 운영팀 중개 신청(2026-11-16 부터 지난 신청 읽기 · 관리자 마무리 전용) (2026-11-15) ───
   연락 창의 요청 번호 · 「내 정보 → 구매 요청」 카드 · 관리자 중개 신청의 「신청 당시 / 지금」 · 처리 이력. 경고색을 새로 만들지 않는다. */
.preq-box { padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); display: grid; gap: var(--s1); font-size: var(--f-sm); overflow-wrap: anywhere; }
.preq-code b { font-size: var(--f-lg); letter-spacing: .04em; }
.preq-box-tabs { margin-bottom: var(--s3); }
.preq-find { margin: var(--s3) 0; flex-wrap: wrap; }
.preq-find .input { flex: 1 1 160px; min-width: 0; max-width: 220px; text-transform: uppercase; }
.preq-list { margin-top: var(--s2); }
/* 아래 「내 멤버십」 칸과의 틈은 #mebody 가 갖는다(2026-11-16 · 「화면 문법 C」 ①) — 여기서 따로 주던 :last-child 여백은 걷었다 */
.preq-card { display: grid; gap: var(--s2); min-width: 0; }
.preq-hd { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; min-width: 0; }
.preq-no { letter-spacing: .04em; }
.preq-hd .nowrap { margin-left: auto; }
.preq-gift { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.preq-gift a { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.preq-gift a:hover { color: var(--accent); }
.preq-price { margin-left: auto; font-weight: 800; }
.preq-way, .preq-link, .preq-exp { font-size: var(--f-xs); overflow-wrap: anywhere; }
.preq-chg-list { display: grid; gap: 2px; margin-top: var(--s1); overflow-wrap: anywhere; }
.preq-who { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: var(--f-sm); min-width: 0; }
.preq-who .grow { min-width: 0; flex: 1 1 160px; }   /* 좁은 폰에서는 「프로필 보기」가 다음 줄로 — 아이디가 한 글자씩 접히지 않게 */
.preq-who .sub { font-size: var(--f-xs); color: var(--text-4); margin-top: 2px; overflow-wrap: anywhere; }
.preq-who a { font-weight: 600; }
.preq-tgmoved { color: var(--warn-fg) !important; font-weight: 700; }
/* 구매 요청 수락 · 거절 (2026-11-16 사장님 지시) — 받은 요청 카드 아래 단추 줄 · 「수락함」 딱지 · 판매완료 창의 「구매 요청한 회원」 칩 */
.badge.preq-acc { color: var(--ok-fg); background: var(--ok-soft); border-color: var(--ok-soft); }
.preq-accnote { font-size: var(--f-xs); overflow-wrap: anywhere; }
.preq-acts { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s2); border-top: 1px solid var(--line); }
.preq-acts .btn { min-height: 36px; }
.preq-acts-note { font-size: var(--f-xs); }
.sale-auto { color: var(--ok-fg); font-weight: 600; }
.sale-cands { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.sale-cands-hd { flex: 1 1 100%; font-size: var(--f-xs); color: var(--text-3); }
.sale-cand { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.sale-cand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ld-accepted .ti { color: var(--ok-fg); }
@media (hover: none) {
  .preq-acts .btn, .sale-cand { min-height: 44px; }
}
.cf-tg { overflow-wrap: anywhere; }
.esc-code { letter-spacing: .04em; }
.esc-snap { display: grid; gap: 2px; font-size: var(--f-sm); min-width: 0; }
.esc-snap > div { overflow-wrap: anywhere; }
.esc-link { font-size: var(--f-xs); }
.esc-hist summary { cursor: pointer; font-size: var(--f-sm); color: var(--text-3); }
.esc-hist ul { margin: var(--s2) 0 0; padding-left: 1.1em; display: grid; gap: var(--s1); font-size: var(--f-sm); }
.esc-hnote { color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
/* (끝) 구매 요청 · 중개 신청 */

/* ════════════════════════════════════════════════════════════════════
   화면 문법 (2026-11-16 · 사장님 「전체적으로 레이아웃 및 퀄리티 있게 다듬어 주세요 · 레이아웃이 뒤죽박죽」)
   ────────────────────────────────────────────────────────────────────
   한 벌의 규칙이다 — 같은 종류는 같은 모양 · 같은 간격. 크기는 tokens.css 「화면 문법」 토큰
   (--pill-h-sm · --pill-h-md · --ctl-h · --ctl-h-sm · --cta-h · --hdr-ctl · --w-read)만 쓴다.
   파일 맨 끝이라 앞의 같은 세기 규칙을 이긴다. 화면마다의 짜임(.ld-* · home · 판매자 머리 …)은 각 구역이 정한다.
   CLAUDE.md 「화면을 고칠 때 → 화면 문법 (2026-11-16)」에 이름표와 쓰는 법을 적어 두었다.
   ════════════════════════════════════════════════════════════════════ */

/* ── ① 짧은 이름표는 낱말 안에서 접지 않는다 ──
   body 는 긴 주소 · 영문을 접으려고 overflow-wrap: anywhere 다. 그것이 단추 · 칩 · 탭 · 메뉴까지 내려와
   좁은 폭에서 「전체 보/기」「판매/중」처럼 낱말 가운데가 꺾였다. 이름표는 줄이 모자라면 여백 · 그림을 줄인다. */
button, .btn, .fbtn, .chip, .badge, .st, .tab, .tabs button, .tabs > a, .gnb a, .mnav a,
.sec-more, .langbtn, .trophychip { overflow-wrap: normal; }
.sec-more, .chip, .tab, .tabs button, .tabs > a { white-space: nowrap; }

/* ── ② 자간 — 한글에는 주지 않는다(영문 대문자 눈썹 글씨만) ── */
.stat span, .langbtn, .brand-sub, .flag.is-code { letter-spacing: 0; }
html[lang="ko"] .gnb a, html[lang="ko"] .mnav a { letter-spacing: 0; }
:lang(en) .hero .eyebrow { letter-spacing: .06em; }

/* ── ③ 면 — 구역마다 테두리 있는 면은 하나(.panel). 폰에서는 안쪽 여백을 한 단 줄인다 ── */
@media (max-width: 640px) { .panel { padding: var(--s4); } }

/* ── ④ 알림줄 — 조용한 면 + 왼쪽 3px 금. 경고색은 굵은 말(b · strong)에만 ──
   예전에는 노랑 · 파랑 · 초록으로 칸 전체를 칠해, 한 화면에 알림이 둘만 있어도 광고판처럼 시끄러웠다. */
.note { align-items: flex-start; }
.note > .ni + * { flex: 1 1 0; min-width: 0; }
.note-warn, .note-info, .note-ok {
  background: var(--surface); border-color: var(--line-2); color: var(--text-2);
  border-left-width: 3px;
}
.note-warn { border-left-color: var(--warn); }
.note-info { border-left-color: var(--accent); }
.note-ok   { border-left-color: var(--ok); }
.note-warn b, .note-warn strong { color: var(--warn-fg); }
.note-info b, .note-info strong { color: var(--text); }
.note-ok b, .note-ok strong { color: var(--ok-fg); }

/* ── ⑤ 단추 높이 — 한 묶음에 두 높이까지 ──
   1단: 화면에 하나뿐인 채운 큰 단추(.btn-cta · 56px) — Telegram 연락 · 주된 보내기
   2단: 그 묶음의 나머지 전부(.btn-ctl · 44px · 그림만 쓰는 단추는 .btn-icon.btn-ctl 44×44)
   .btn 의 기본 40px 은 그대로다(목록 · 표 안의 단추) — 묶음 단위로 붙여 쓴다. */
.btn-ctl { min-height: var(--ctl-h); }
.btn-icon.btn-ctl { width: var(--ctl-h); }
.btn-cta { min-height: var(--cta-h); }
/* 한 줄을 다 쓰는 단추의 글이 접혀도 그림은 첫 줄에 붙어 있다 — 그림을 이름표 칸(.btn-l) 안에 넣는다.
   (그림이 flex 의 한 칸이면 글이 두 줄이 될 때 그림만 두 줄의 가운데 떠 있었다) */
.btn-full { text-wrap: balance; }
.btn-full .btn-l { display: inline; min-width: 0; }
.btn-l svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 400px) { .btn-full:not(.btn-sm) { font-size: var(--f-md); } }

/* ── ⑥ 딱지 · 칩 — 누르지 않는 표시는 24px(--pill-h-sm · --r-xs) · 누르는 칩은 32px(--pill-h-md · --r-full) ──
   손가락 기기에서 누르는 칩은 위아래로 44px 자리를 갖는다(모양은 그대로 · 칩 32 + 6 + 6) */
@media (hover: none) {
  .chip { position: relative; }
  .chip::after { content: ''; position: absolute; inset: calc((var(--pill-h-md) - 44px) / 2) 0; }
  .trophychip::after { inset: calc((var(--pill-h-sm) - 44px) / 2) 0; }
  /* 작은 단추(.btn-sm · 32px)도 같은 방식 — 모양은 그대로 · 누르는 자리만 위아래 44px(2026-11-18 고급 단추 · 설계 97 §4.3).
     .btn-sm 전체 높이를 44 로 올리지 않는다(units.test.js — 카드 안의 작은 단추까지 커진다). 키가 44 이상이면 넓히지 않는다(min).
     position 은 :where 로 세기 0 — 다른 곳에서 자리(absolute 등)를 정한 작은 단추는 그 값이 이긴다 */
  :where(.btn-sm) { position: relative; }
  .btn-sm::after { content: ''; position: absolute; inset: min(0px, calc((100% - 44px) / 2)) 0; }
  /* 넓힌 자리가 바로 위 누르는 줄을 덮지 않게 — 안전거래 「모두 펼치기」(.sf-tools · 위 여백 0)가 「이용 수칙 전체 보기」 아랫단 5px 을 가져갔다
     (R6 검증 2026-11-18 · 375px 실측). 겹친 곳은 summary 몫이다. 모양 · 자리는 그대로 */
  .sf-all > summary { position: relative; z-index: 1; }
}

/* ── ⑦ 구역 제목(.sec-hd) — 「전체 보기」는 제목 줄 높이에 선다 ──
   예전에는 아래 끝(flex-end)에 맞춰 설명 줄이 있는 구역에서는 「전체 보기」가 설명 줄에 붙어 제목과 따로 놀았다.
   누르는 자리는 44px — 바깥 여백을 거꾸로 빼서 제목 줄의 높이 · 자리는 그대로다. */
.sec-hd { align-items: flex-start; }
.sec-more {
  flex: 0 0 auto; min-height: 44px; padding: 0 var(--s1); justify-content: center;
  margin: calc((var(--f-xl) * 1.3 - 44px) / 2) calc(var(--s1) * -1) calc((var(--f-xl) * 1.3 - 44px) / 2) 0;
}
@media (max-width: 860px) {
  .sec-more { margin-top: calc((var(--f-lg) * 1.3 - 44px) / 2); margin-bottom: calc((var(--f-lg) * 1.3 - 44px) / 2); }
}

/* ── ⑧ 사실 한 줄(.dotline) — 「★ 4.9 · 후기 15 · 거래완료 3」 ──
   숫자는 굵게(<b>) · 사이의 가운데점은 CSS 가 찍는다(글자로 박지 않는다).
   점은 항목 왼쪽 틈(16px)의 가운데에 걸려 있고, 줄의 맨 앞 항목의 점은 상자 밖이라 잘린다(overflow: hidden) —
   그래서 줄이 접혀도 새 줄이 「· 팔로워 0」처럼 점으로 시작하지 않는다. */
.dotline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s4); min-width: 0; overflow: hidden;
           font-size: var(--f-sm); line-height: 1.6; color: var(--text-3); }
.dotline > * { position: relative; white-space: nowrap; }
.dotline > *::before { content: '·'; position: absolute; left: calc(var(--s2) * -1); transform: translateX(-50%); color: var(--text-4); }
.dotline b { font-weight: 700; color: var(--text-2); }

/* ── ⑨ 이름표 · 값(.kv) — 값은 한 묶음 안에서 같은 x 에서 시작한다(칸 폭은 가장 긴 이름표) ── */
.kv { grid-template-columns: max-content minmax(0, 1fr); gap: var(--s3) var(--s5); align-items: baseline; }
.kv dt { font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
.kv dd { font-size: var(--f-md); font-weight: 700; color: var(--text); min-width: 0; }
/* 칸 두 개씩 놓는 모양 — 「컬렉션 / 발행번호」처럼 위 이름표 · 아래 값 */
.kv-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin: 0; }
.kv-cells > * { min-width: 0; margin: 0; }
.kv-cells .k { display: block; font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
.kv-cells .v { display: block; margin: 2px 0 0; font-size: var(--f-md); font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.kv-cells .v .rar, .kv dd .rar { font-size: var(--f-xs); font-weight: 600; color: var(--text-3); margin-left: var(--s1); }

/* ── ⑩ 그림 + 글 한 줄 — 그림이 혼자 한 줄에 남지 않는다 ──
   「ⓘ」 다음 긴 글이 통째로 다음 줄로 내려가 그림만 위에 떠 있었다(매물 상세 Gift 정보 · 1728px). */
.srcline.src-manual, .srcline.ld-samegift { flex-wrap: nowrap; align-items: flex-start; }
.srcline > svg { flex: 0 0 auto; }
.srcline.src-manual > svg, .srcline.ld-samegift > svg { margin-top: 3px; }
.srcline.src-manual > span, .srcline.ld-samegift > span { flex: 1 1 0; min-width: 0; }
.srcline.ld-samegift > a { flex: 0 0 auto; }

/* ── ⑪ 입력 · 고르기 — 한 줄에 섞여도 높이가 맞는다(44px · --r-sm · --line-2) ── */
.input, .select { height: var(--ctl-h); }
.mbar > .btn { height: var(--ctl-h); }

/* 체크란 하나의 모양 — 20px · --line-3 테 · 고르면 --accent 바탕에 체크(마스크 그림 · 색은 --on-accent).
   진짜 체크란(input)을 그대로 두고 모양만 바꾼다 — 키보드 · 화면 읽기 · 이름표(js-fmk · js-ftr …)는 그대로다 */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto;
  width: 20px; height: 20px; display: inline-grid; place-items: center; vertical-align: middle;
  border: 1.5px solid var(--line-3); border-radius: var(--r-xs); background: var(--surface);
  cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
input[type="checkbox"]::before {
  content: ''; width: 12px; height: 12px; background: var(--on-accent); transform: scale(0);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
input[type="checkbox"]:hover { border-color: var(--accent-line); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
.fmk input, .ftrait input[type="checkbox"], .mpg-it input { width: 20px; height: 20px; }

/* ── ⑫ 선물 그림의 우물 — tokens.css 의 --img-well(.gimg 기본값) · 배경 특성(.bgt-*)이 있으면 그것이 덮는다 ── */

/* ── ⑬ 매물 카드 — 칸이 고정이라 한 줄의 값이 같은 높이에 선다 ──
   [그림] → 이름 1줄(말줄임) → 「#번호 한글 읽기」 1줄 → 값(이름 바로 아래) → 판매자 줄(카드 맨 아래 · 남는 자리는 그 위)
   ui.js 의 U.giftTitle(…, { card: true }). 판매자 줄의 규칙(줄바꿈 허용 · 이름 바닥 4.5em · 트로피를 감추지 않음 · 과녁)은 위 그대로다. */
.gcard-bd { padding: var(--s3); gap: var(--s2); }
.gcard .gcard-nm { display: block; -webkit-line-clamp: unset; overflow: visible; line-height: 1.35; }
.gcard .gnm, .gcard .gsub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .gsub { min-height: 1.35em; margin-top: 1px; font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
.gcard .gsub .num { color: var(--text-3); font-weight: 700; }
.gcard .gsub .gko { font-size: 1em; font-weight: 500; color: var(--text-4); margin-left: var(--s1); }
.gcard .gsub .num + .gko { margin-left: 6px; }
.gcard .gsub > .gko:first-child { margin-left: 0; }
.gcard .gmoney { margin-top: 0; }
/* ★ 판매자 줄을 바닥에 박지 않는다(margin-top: auto 를 걷었다 · 2026-11-16) — 판매자 줄이 두 줄로 접힌 카드(트로피 · 긴 이름)가 있으면
   옆 카드와 가는 금 · 이름이 20~30px 어긋났다. 이름 칸이 두 줄 고정이라 값 · 가는 금 · 판매자 이름이 한 줄의 카드에서 같은 높이에 서고, 남는 자리는 카드 맨 아래로 간다 */
.gcard .gseller { padding-top: var(--s2); }
@media (max-width: 860px) {
  .gcard-bd { padding: var(--s3) var(--s3) var(--s3); gap: var(--s2); }
}
@media (max-width: 380px) {
  .gcard-bd { padding: 10px; }
}

/* ── ⑭ 옆으로 미는 카드 줄(.grail · 첫 화면 컬렉션) — 오른쪽 끝을 흐려 「더 있다」를 알린다(.pickrail 과 같다) ──
   끝까지 밀면 core.js 의 markScrollEnds 가 .at-end 를 붙여 흐림을 끈다. 가리개는 불투명하기만 하면 된다 — 색은 안 보이므로 토큰 이름(--ink)을 쓴다 */
.grail { scrollbar-width: none; scroll-snap-type: x proximity;
         -webkit-mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent);
                 mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); }
.grail::-webkit-scrollbar { display: none; }
.grail > * { scroll-snap-align: start; }
.grail.at-end { -webkit-mask-image: none; mask-image: none; }

/* ── ⑮ 판매자 카드 (U.sellerCard) — 사진 줄 · 사실 한 줄 · 가입일 ──
   등급 딱지는 이름 아래 줄에 함께 선다(제 줄을 따로 먹지 않는다) · 숫자 세 칸 상자(상자 안의 상자)는 사실 한 줄(.dotline)이 됐다. */
.scard { gap: var(--s3); }
.scard-top { align-items: flex-start; }
.scard-top > .av { margin-top: 2px; }
.scard .scard-nm { min-height: 24px; line-height: 24px; }
.scard-nm > .trophy { vertical-align: -5px; }
.scard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s1); min-width: 0; }
.scard-meta .sbadges { min-height: var(--pill-h-sm); }
.scard-meta .cty { font-size: var(--f-xs); color: var(--text-3); }
.scard-meta .scard-tg { font-size: var(--f-xs); color: var(--text-3); }
.scard-top > .avwrap { flex-shrink: 0; margin-top: 2px; }
/* 2026-11-27 정리 — 이름은 한 줄 말줄임 · 딱지 둘(등급 · 멤버십)은 사이 금 없이 한 줄 · 좁으면 그대로 접힌다(줄 사이 4px) */
.scard-chips { min-width: 0; }
.scard-chips .sbadges { gap: 4px 6px; }
.scard-chips .bdiv { display: none; }
/* 멤버십 빛 테두리(2026-11-27) — 등급 딱지와 같은 색(--mship-*) · 테두리 + 바깥 빛 두 겹 + 위쪽 가는 빛줄 + 위에서 번지는 옅은 빛. 움직이지 않는다(올리면 조금 더 밝게) */
.mpay-short { font-size: var(--f-xs); font-weight: 700; color: var(--warn-fg); }
.mpay-short a { color: var(--accent-fg); text-decoration: underline; }
.scard:is(.m-premium, .m-pro, .m-max) { position: relative; }
.scard:is(.m-premium, .m-pro, .m-max)::before { content: ''; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px; pointer-events: none; }
.scard.m-premium { border-color: var(--mship-premium-line); background-image: radial-gradient(120% 70% at 50% 0%, var(--mship-premium-soft), transparent 72%);
  box-shadow: 0 0 0 1px var(--mship-premium-line), 0 0 22px -4px var(--mship-premium-line), 0 0 44px var(--mship-premium-soft); }
.scard.m-premium::before { background: linear-gradient(90deg, transparent, var(--mship-premium), transparent); }
.scard.m-premium:hover { border-color: var(--mship-premium); box-shadow: 0 0 0 1px var(--mship-premium), 0 0 26px -2px var(--mship-premium-line), 0 0 52px var(--mship-premium-soft); }
.scard.m-pro { border-color: var(--mship-pro-line); background-image: radial-gradient(120% 70% at 50% 0%, var(--mship-pro-soft), transparent 72%);
  box-shadow: 0 0 0 1px var(--mship-pro-line), 0 0 22px -4px var(--mship-pro-line), 0 0 44px var(--mship-pro-soft); }
.scard.m-pro::before { background: linear-gradient(90deg, transparent, var(--mship-pro), transparent); }
.scard.m-pro:hover { border-color: var(--mship-pro); box-shadow: 0 0 0 1px var(--mship-pro), 0 0 26px -2px var(--mship-pro-line), 0 0 52px var(--mship-pro-soft); }
.scard.m-max { border-color: var(--mship-max-line); background-image: radial-gradient(120% 70% at 50% 0%, var(--mship-max-soft), transparent 72%);
  box-shadow: 0 0 0 1px var(--mship-max-line), 0 0 22px -4px var(--mship-max-line), 0 0 44px var(--mship-max-soft); }
.scard.m-max::before { background: linear-gradient(90deg, transparent, var(--mship-max), transparent); }
.scard.m-max:hover { border-color: var(--mship-max); box-shadow: 0 0 0 1px var(--mship-max), 0 0 26px -2px var(--mship-max-line), 0 0 52px var(--mship-max-soft); }
.scard-meta .scard-cty { font-size: var(--f-xs); color: var(--text-3); }
.scard-meta { margin-top: 2px; }
.scard-meta:empty { display: none; }
.scard .scard-stats {
  display: flex; grid-template-columns: none; text-align: left; background: none; border: 0; border-radius: 0;
  padding: var(--s3) 0 0; border-top: 1px solid var(--line); gap: 0 var(--s4);
}
.scard .scard-stats > div + div { border-left: 0; }
.scard .scard-stats b { display: inline; font-size: inherit; line-height: inherit; font-weight: 700; color: var(--text-2); }
.scard .scard-stats span { display: inline; font-size: inherit; margin-top: 0; color: inherit; }
.scard .scard-stats .sc-rt { display: inline-flex; align-items: baseline; gap: 3px; }
.scard .scard-stats .sc-rt svg { align-self: center; }
.scard .scard-stats .sc-rt svg { color: var(--gold); flex: 0 0 auto; }
.scard .scard-stats .sc-rt b { color: var(--text); }
.scard .scard-join { margin-top: 0; }
@media (max-width: 380px) { .scard .scard-stats b { font-size: inherit; } }

/* ── ⑯ 머리말의 작은 단추 — 언어 · 밝기 · 방패 · 찜 · 알림 · 로그인이 한 모양(--hdr-ctl · --r-sm · --line-2 테) ──
   폰 · 태블릿(≤980)은 38px — 회원 · 운영자 머리말이 320~460px 에서 화면폭 − 16px 에 딱 맞게 재어 둔 자리라(CLAUDE.md 「320px 머리말 실측」)
   폭은 예전 그대로(아이콘 38 · 언어 단추 글자 폭)이고, 높이 · 모서리 · 테만 맞춘다. 내 사진(#meBtn)은 사진이 제 모양이라 테를 두르지 않는다.
   손가락 기기에서는 ::after 로 누르는 자리를 44px 로 넓힌다(모양 · 자리는 그대로). */
.langbtn { height: var(--hdr-ctl); border-radius: var(--r-sm); }
@media (max-width: 980px) {
  :root { --hdr-ctl: 38px; }
  .hdr .iconbtn, .hdr .langbtn, .hdr-r #loginBtn, .hdr-r #admBtn {
    height: var(--hdr-ctl); border-radius: var(--r-sm);
  }
  .hdr .iconbtn { width: var(--hdr-ctl); border: 1px solid var(--line-2); background: var(--surface); }
  .hdr .iconbtn:hover { background: var(--surface-2); border-color: var(--line-3); }
  /* 사진이 있을 때만 테를 벗긴다(app.js 가 has-photo 를 단다) — 사진 없는 회원의 기본 그림은 옆 단추들과 같은 테 안에 선다 */
  .hdr #meBtn.has-photo { border-color: transparent; background: none; }
  .hdr-r #loginBtn { border-color: var(--line-2); background: var(--surface); color: var(--text); }
  .hdr .iconbtn .dot { top: -5px; right: -5px; border-color: var(--bg); }
}
@media (hover: none) {
  .hdr .langbtn, .hdr-r #loginBtn, .hdr-r #admBtn { position: relative; }
  .hdr .iconbtn::after, .hdr .langbtn::after, .hdr-r #loginBtn::after, .hdr-r #admBtn::after {
    content: ''; position: absolute; inset: calc((var(--hdr-ctl) - 44px) / 2) -2px;
  }
}

/* ── ⑰ 읽는 화면 · 쓰는 화면의 폭 — 가이드 · 정책 · 매물 등록 · 멤버십 신청 · 로그인 칸이 붙여 쓴다 ── */
.wrap-read { max-width: var(--w-read); margin-left: auto; margin-right: auto; }

/* ── ⑱ 화면 끝 — 마지막 구역은 아래 여백이 없다. 화면과 바닥글 사이는 한 번만(.page 아래 여백 + .ftr 위 여백) ──
   폰(≤980)의 아래 메뉴 몫은 바닥글(.ftr margin-bottom)이 이미 갖고 있어, .page 가 또 더하면 짧은 화면(판매완료 빈 화면 · 로그인)에서
   바닥글 위가 200px 넘게 비었다. */
.page > .wrap > .sec:last-child, .page > .wrap > section:last-child { margin-bottom: 0; }
.page { padding-bottom: var(--s8); }
.ftr { margin-top: var(--s8); }
@media (max-width: 980px) { .page { padding-bottom: var(--s7); } }
@media (max-width: 860px) { .page { padding-top: var(--s5); } }
/* (끝) 화면 문법 */

/* ════════════════════════════════════════════════════════════════════
   화면 문법 C — 사람 · 글 · 양식 화면 (2026-11-16 · 같은 날 셋째 묶음)
   판매자 프로필 · 내 정보 · 판매자 목록 · 랭킹 · 로그인 · 가입 · 매물 등록 · 커뮤니티 · 안전거래 · 가이드 · 멤버십 · 시세 · 관리자.
   위 「화면 문법」의 토큰 · 이름표(.dotline · .sec-more · .note-* · .btn-ctl · .wrap-read)를 그대로 붙여 쓴다.
   CLAUDE.md 「화면 문법 (2026-11-16)」 아래 「사람 · 글 · 양식 화면」에 적어 두었다.
   ════════════════════════════════════════════════════════════════════ */

/* ── C① 판매자 · 내 정보 머리칸 ── */
/* 사실 한 줄(나라 · 아이디 · 가입일) — 한 덩이씩 접힌다 */
.profile-hd .pf-meta { font-size: var(--f-sm); }
.profile-hd .pf-meta .cty, .profile-hd .pf-meta .flag { vertical-align: -2px; }
/* 트로피 줄 — 크기 · 움직임은 그대로(운영자 결정), 위아래 틈만 이름 줄과 맞춘다 */
.profile-hd .trophyrow { margin: calc(var(--s1) * -1) 0 0; }

/* 태블릿(641~1023) — 숫자 칸이 이름 칸 옆 300px 에 혼자 서서 오른쪽 330px 이 비었다(768 실측).
   이름 칸 아래 한 줄을 통째로 쓰고 두 장을 나란히 눕힌다 */
@media (min-width: 641px) and (max-width: 1023px) {
  .sellerside, .mystats {
    flex: 1 1 100%; min-width: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s4); align-items: stretch;
  }
  .sellerside > .note, .mystats > .note { grid-column: 1 / -1; }
}

/* 넓은 화면(≥1024) — 거래 숫자의 뜻은 접지 않는다(요약 줄을 감추고 늘 펼친다).
   ::details-content 를 모르는 브라우저는 예전처럼 「숫자 뜻 보기」를 눌러 연다(요약 줄도 그때만 감춘다) */
/* 넓은 화면(≥1024) — 이름 칸은 옆 숫자 칸의 키만큼 서고, 단추 줄이 바닥에 붙는다(두 칸의 아래 끝이 한 줄에 선다 · 이름 칸 밑의 빈 곳이 없다) */
@media (min-width: 1024px) {
  .profile-hd .who { align-self: stretch; }
  .profile-hd .who > .me-btns, .profile-hd .who > .sp-acts { margin-top: auto; }
}
@supports selector(::details-content) {
  @media (min-width: 1024px) {
    .tstats .ts-why > summary { display: none; }
    .tstats .ts-why::details-content { content-visibility: visible; }
    .tstats .ts-why { padding-top: var(--s3); }
  }
}

/* 평점 상자 — 위(숫자 · 별 · 막대 · 후기 수)와 아래(.rt-foot · 규모 한 줄 + 「받은 후기 보기」)로 갈라 선다 */
.ratebox.trustbox { flex-direction: column; flex-wrap: nowrap; justify-content: space-between; gap: var(--s4); }
.trustbox .rt-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3);
  padding-top: var(--s3); border-top: 1px solid var(--line);
}
.trustbox .rt-foot .dotline { font-size: var(--f-xs); }
.trustbox .rt-more {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  font-size: var(--f-xs); font-weight: 700; color: var(--accent-fg); white-space: nowrap;
}
.trustbox .rt-more:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (hover: none) { .trustbox .rt-more::after { content: ''; position: absolute; inset: -14px -6px; } }

/* 판매자 행동 줄 — Telegram · 팔로우 · 신고가 한 높이(36 · 손가락 기기 44) · 신고는 같은 테의 그림 단추 */
.profile-hd .sp-acts .btn { min-height: var(--ctl-h-sm); height: var(--ctl-h-sm); }
.profile-hd .sp-acts .btn-icon { width: var(--ctl-h-sm); }
/* 내 정보 단추 줄 — 같은 높이(36 · 손가락 기기 44). 계정 단추 둘은 한 묶음으로 오른쪽 끝 */
.profile-hd .me-btns .btn { min-height: var(--ctl-h-sm); height: var(--ctl-h-sm); }
.profile-hd .me-acct { display: inline-flex; gap: var(--s2); margin-left: auto; }
@media (hover: none) {
  .profile-hd .sp-acts .btn, .profile-hd .me-btns .btn { min-height: 44px; height: 44px; }
  .profile-hd .sp-acts .btn-icon { width: 44px; }
}

/* 「이 판매자를 판단하는 두 가지」 — 두 칸이 같은 높이에서 글을 시작한다(머리 줄 36px) · 세로 금은 둘 다 --line-2.
   경고색은 굵은 말 「안전을 보증하지 않습니다」에만 */
.trustwhy .tw-top { min-height: 36px; align-items: center; }
.trustwhy .tw, .trustwhy .tw-caution { border-left: 2px solid var(--line-2); }
.trustwhy .tw-caution p b { color: var(--warn-fg); }
.trustwhy .tw-foot { display: grid; gap: var(--s2); }
.trustwhy .tw-foot p { margin: 0; }
.trustwhy .tw-disc { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: var(--s2); font-size: var(--f-sm); color: var(--text-2); line-height: 1.55; }
.trustwhy .tw-disc > .ni { flex: 0 0 auto; margin-top: 2px; color: var(--warn); line-height: 0; }
.trustwhy .tw-disc > span:last-child { flex: 1 1 0; min-width: 0; }

/* 폰(≤640) — 사진 64px 을 이름 옆에 · 평점 상자는 [숫자 | 별 · 막대 · 후기 수] 두 칸 */
/* 머리칸은 두 칸 격자 — [사진 64 | 이름 · 트로피 · 사실 줄 · 칩]. 소개 · 알림줄 · 단추 줄 · 숫자 칸은 사진 아래까지 한 줄을 다 쓴다
   (이름 칸 안에 단추를 두면 208px 폭에 「Telegram · 팔로우 · 신고」가 안 들어가 신고가 혼자 다음 줄로 떨어졌다 · 320 영어 실측).
   이름 칸(.who)은 display: contents — 그 안의 줄들이 곧장 격자 칸이 된다(마크업 · data-act 그대로) */
@media (max-width: 640px) {
  .profile-hd {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start;
    gap: var(--s2) var(--s4); padding-bottom: var(--s5);
  }
  .profile-hd > .av { width: 64px; height: 64px; grid-column: 1; grid-row: 1 / span 2; }
  .profile-hd .who { display: contents; }
  .profile-hd .who > * { grid-column: 2; min-width: 0; }
  .profile-hd .who > .sp-acts, .profile-hd .who > .me-btns, .profile-hd .who > .note, .profile-hd .who > p { grid-column: 1 / -1; }
  .profile-hd .who > .sp-acts, .profile-hd .who > .me-btns { margin-top: var(--s2); }
  .profile-hd h1 { font-size: var(--f-xl); }
  .sellerside, .mystats { grid-column: 1 / -1; margin-top: var(--s2); }
  .ratebox.trustbox { padding: var(--s4); gap: var(--s3); }
  .ratebox.trustbox > .stack {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s1) var(--s4);
  }
  .ratebox.trustbox > .stack > .rt-top { grid-row: span 3; }
  .trustbox .big { font-size: var(--f-3xl); }
  .tstats.panel { gap: var(--s3); }
  /* 내 정보 단추 — 두 칸 격자 · 「로그아웃」은 맨 아래 한 줄(채우지 않는 단추) · 「관리자」는 맨 위 한 줄 */
  .profile-hd .me-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); width: 100%; }
  .profile-hd .me-btns .btn { width: 100%; min-width: 0; padding: 0 var(--s2); }
  .profile-hd .me-acct { display: contents; }
  .profile-hd .me-btns [data-act="logout"] { grid-column: 1 / -1; }
  .profile-hd .me-btns .me-adm { grid-column: 1 / -1; order: -1; }
  .profile-hd .me-btns .me-pxa { grid-column: 1 / -1; order: -1; }
  .profile-hd .me-btns:has([data-act="deco-open"]) [data-act="change-pw"] { grid-column: 1 / -1; }
}
/* 숫자 칸 이름표 — 낱말 가운데서 꺾지 않는다(영어 「Awaiting confirmat/ion」 · 320 실측). 영어는 하이픈으로 접고, 좁은 폰은 칸 안 여백을 줄인다 */
.tstats .ts-lb { overflow-wrap: normal; word-break: keep-all; hyphens: auto; }
@media (max-width: 400px) { .tstats .ts { padding: 0 var(--s2); } .tstats .ts:first-child { padding-left: 0; } }
/* 내 정보 — 탭 내용과 아래 「내 멤버십」 사이를 구역 간격(--s8)으로 */
#mebody { margin-bottom: var(--s8); }

/* ── C② 판매자 카드 격자(#/sellers · 내 정보 「팔로잉」) — 5 · 4 · 3 · 2칸(첫 화면의 옆으로 미는 판매자 줄은 따로) ── */
.ggrid-4.sgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
/* 한 줄의 카드는 [사진 줄 · 딱지 줄(2026-11-27) · 사실 줄 · 가입일] 네 칸을 함께 쓴다(subgrid) — 나라가 둘째 줄로 접힌 카드가 있어도
   같은 줄 카드들의 가는 선 · 사실 줄 · 가입일이 같은 높이에 선다. subgrid 를 모르는 브라우저는 예전처럼 카드마다 따로 선다 */
@supports (grid-template-rows: subgrid) {
  .ggrid-4.sgrid > .scard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s3); align-content: start; }
}
@media (max-width: 1279px) { .ggrid-4.sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .ggrid-4.sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .ggrid-4.sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
/* 480px 아래는 한 칸 — 두 칸(카드 폭 165px)이면 닉네임이 「RareDr…」로 잘리고 「(337일째)」가 혼자 다음 줄로 떨어졌다(375 실측).
   판매자 카드 한 장은 사진 · 이름 · 사실 한 줄 · 가입일이 한 줄씩 서는 폭이 필요하다 */
@media (max-width: 479px)  { .ggrid-4.sgrid { grid-template-columns: minmax(0, 1fr); } }

/* ── C③ 랭킹 — 4위부터의 줄: 딱지 한 줄 높이를 맞추고 사실 줄은 조용하게(시상대 · 트로피 그림 · 움직임은 그대로) ── */
.rankrow .bd > .row { min-height: var(--pill-h-sm); }
.rankrow .rk-rt { font-size: var(--f-sm); color: var(--text-3); }
.rankrow .rk-rt b { color: var(--text-2); font-weight: 700; }

/* ── C④ 로그인 · 가입 — 글칸 44 · 「로그인」/「가입 신청」은 그 화면의 하나뿐인 큰 단추(56) · 좁은 화면에서는 로고 아래 가운데 ── */
.authcard .input, .authcard .select { height: var(--ctl-h); }
.authcard .authgo { min-height: var(--cta-h); }
@media (max-width: 900px) {
  .authwrap { justify-items: center; }
  .authwrap .authbox { margin-inline: auto; width: 100%; }
}

/* ── C⑤ 매물 등록 — 쓰는 화면 폭(--w-read) · 이름표(f-sm/700) → 설명(f-xs) → 칸 · 칸 사이 --s4 · 묶음 사이 --s7 ── */
.sellwrap > .pagehd { margin-bottom: var(--s4); }
.sellwrap > .note + .note, .sellwrap > .note + .cml-draft { margin-top: var(--s2); }
.sellwrap > .note:last-of-type { margin-bottom: 0; }
.sellwrap #sellForm { margin-top: var(--s6); gap: var(--s7); }
.sellwrap #sellForm > .panel { gap: var(--s4); }
.sellwrap #sellForm > .panel > h3 { font-size: var(--f-lg); margin: 0; }
.sellwrap .field { gap: var(--s2); }
.sellwrap .field > label { font-size: var(--f-sm); font-weight: 700; }
.sellwrap #traitHint { margin-top: calc(var(--s2) * -1); }
.tgbox .tgrow .input, .tgbox .tgrow .btn { height: var(--ctl-h); }
/* 주소 칸과 「불러오기」는 한 줄(폰 620px 아래는 위 규칙대로 세로) — 칸의 폭 100% 가 기본 폭이 되어 단추만 다음 줄로 떨어졌다 */
@media (min-width: 621px) {
  .tgbox .tgrow { flex-wrap: nowrap; }
  .tgbox .tgrow .input { flex: 1 1 0; min-width: 0; }
}
.sellwrap #sellForm > .row:last-child .btn { min-height: var(--cta-h); }
.sellwrap #sellForm > .row:last-child .btn:not(.btn-primary) { min-height: var(--cta-h); padding: 0 var(--s6); }

/* ── C⑥ 커뮤니티 — 글 줄의 게시판 딱지는 누르지 않는 표시 한 벌(24 · --r-xs · f-xs/700 · 자간 0) ── */
.cml-hd { height: var(--pill-h-sm); padding: 0 var(--s2); font-size: var(--f-xs); font-weight: 700; letter-spacing: 0; }

/* ── C⑦ 안전거래 수칙(#/safety) — 테두리 있는 면은 하나: 「이용 수칙 전체 보기」는 상자 안의 상자가 아니라 머리카락 선 아래 목록 ──
   긴 글(역할과 책임 안내)은 읽는 폭(--w-read)에서 접힌다 */
.safety.is-page .sf-all { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.safety.is-page .sf-all > summary { padding-left: 0; padding-right: 0; }
.safety.is-page .sf-rules { padding: 0; }
.safety .sf-foot > p { max-width: var(--w-read); }

/* ── C⑧ 시세(#/price) — see.tg 짜임은 그대로, 「요즘 많이 본 매물」 줄과 아래 검색 사이만 구역 간격(--s8) ── */
.phot { margin-bottom: var(--s8); }
/* (끝) 화면 문법 C */

/* ════════════════════════════════════════════════════════════════════
   화면 문법 D — 교차 검토로 다듬은 것 (2026-11-16 · 같은 날 넷째 묶음)
   폰의 시세 줄 · 거래 방법 타일 · 매물 카드의 가는 금 · 화면 끝 여백 · 내 정보 머리칸 · 평점 상자 · 탭 · 판매자 찾기 줄 ·
   구역 제목 · 멤버십 · 커뮤니티 줄 · 시세 · 가이드 · 머리말 · 관리자 탭. 위 「화면 문법」 · 「화면 문법 C」의 토큰과 이름표를 그대로 쓴다.
   ════════════════════════════════════════════════════════════════════ */

/* D① 매물 상세 시세 두 줄(#mkbox) — 좁은 폰(≤400)에서도 값이 넓은 화면처럼 같은 x 에서 시작한다.
   예전에는 값을 오른쪽 끝으로 밀어(flex-end) 두 줄의 TON 그림이 12px 어긋났고, 회색 글자(모델 · 마켓)가 「Th…」까지 줄었다.
   값 · 24시간 칩이 첫 줄, 회색 글자는 그 아래 제 줄(말줄임 없이 접힌다) */
@media (max-width: 400px) {
  .mkline { row-gap: var(--s1); }
  .mkl-v { flex-wrap: wrap; justify-content: flex-start; }
  .mkl-m { flex: 1 1 100%; order: 3; overflow: visible; text-overflow: clip; white-space: normal; }
}

/* D② 거래 방법 — 폰의 두 칸 타일에서 공식 마켓 봇 아이디를 자르지 않는다(「@Tonnel_Net…」).
   사칭 봇과 한 글자씩 견주라고 안내하는 아이디라 끝까지 보여야 한다 — 칸 안에서 둘째 줄로 접힌다. 이름은 그대로 한 줄 */
@media (max-width: 640px) {
  .ld-way .mkchip .mkt-h { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
}

/* D③ 화면 끝 — 마지막 구역이 안쪽 칸(#homebody · #sr · #favbody · 내 정보의 #mpage …) 안에 있어도 아래 여백을 지운다.
   뒤에 오는 형제가 모두 빈 칸이면 그 칸이 화면의 끝이다(첫 화면 · 검색 · 찜목록은 바닥글 위가 약 120px 이었다 → 80 · 폰 72) */
.page > .wrap > div:not(:has(~ :not(:empty))) > :last-child { margin-bottom: 0; }
/* 내 정보 — 아직 안 채운 칸(멤버십 · 꾸미기 · 상품)은 자리를 차지하지 않는다 */
#mymship:empty, #mpage:empty, #products:empty { display: none; }

/* D④ 마켓 「상세필터」 창 — 묶음 안 「적용」(마켓 · 가격)은 창에서는 감춘다. 창 아래 「적용」 하나가 마켓 체크 · 가격까지 들고 간다(fapplyBtn).
   옆 걸개(#filters)에서는 그대로 보인다 */
.modal .filters-sheet .fapply-row { display: none; }

/* D⑤ 첫 화면 */
/* 실시간 줄 — 배너에 붙어 위 테두리 · 둥근 모서리가 잘려 보였다(화이트 화면) */
.brail + .wrap > .livebar:first-child { margin-top: var(--s4); }
/* 컬렉션 카드 — 「최저가」는 값 바로 앞의 작은 이름표 */
.gcol .gcol-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s1); }
.gcol .gcol-k { font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }

/* D⑥ 사실 한 줄의 줄 나눔(.dl-br) — 판매자 카드의 「★ 평점 · 후기」 / 「거래완료 · 판매중 · 팔로워」 */
.dotline > .dl-br { flex: 0 0 100%; height: 0; }
.dotline > .dl-br::before { content: none; }

/* D⑦ 내 정보 머리칸(≥1024) — 계정 단추 둘(비밀번호 변경 · 로그아웃)은 늘 제 줄에 왼쪽부터 선다.
   다섯 단추가 이름 칸(약 508px)에 한 줄로 못 서서 둘이 오른쪽 끝에 매달려 있었다(1440 · 1728) */
@media (min-width: 1024px) {
  .profile-hd .me-btns .me-acct { flex: 1 1 100%; margin-left: 0; }
}

/* D⑧ 평점 상자 — 옆 칸 키만큼 서되, 위 덩어리(숫자 · 별 · 막대 · 후기 수)는 남는 높이의 가운데에(빈 구멍이 85~130px 이었다).
   「받은 후기 보기 ›」는 접혀도 오른쪽 끝 */
.ratebox.trustbox > .stack { flex: 0 0 auto; margin-block: auto; }
.trustbox .rt-foot .rt-more { margin-left: auto; }

/* D⑨ 구매 요청 — 요청 번호 칸(44)과 단추의 높이를 맞춘다 · 겹쳐 놓인 알림줄 사이 8px(.sellwrap 과 같은 규칙) */
.preq-find .btn { height: var(--ctl-h); min-height: var(--ctl-h); }
#mebody .note + .note { margin-top: var(--s2); }

/* D⑩ 탭 — 좁은 폰에서 다음 탭의 글자가 흐린 끝자리에 걸리게(375px 내 정보: 「후기 쓰기」가 통째로 화면 밖이라 탭이 더 있는 줄 몰랐다) */
@media (max-width: 480px) {
  .tabs button, .tabs > a { padding-left: var(--s3); padding-right: var(--s3); }
  .tabs:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, var(--ink) calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, var(--ink) calc(100% - 40px), transparent);
  }
}

/* D⑪ 판매자 찾기 줄(폰) — 검색칸과 「검색」은 한 줄, 정렬은 그 아래 한 줄을 통째로 */
@media (max-width: 640px) {
  .sellersbar .sq { flex: 1 1 0; min-width: 0; }
  .sellersbar > .spacer { display: none; }
  .sellersbar #ssort { flex: 1 1 100%; width: 100%; }
}

/* D⑫ 구역 제목(폰) — 설명 줄은 「전체 보기」 옆 좁은 칸이 아니라 한 줄을 통째로 쓴다(375px 에서 210px 칸에 두세 줄로 접혔다) */
@media (max-width: 640px) {
  .sec-hd:has(> .sec-more) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4); }
  .sec-hd:has(> .sec-more) > div:first-child { display: contents; }
  .sec-hd:has(> .sec-more) > div:first-child > * { grid-column: 1; grid-row: 1; min-width: 0; }
  .sec-hd:has(> .sec-more) > div:first-child > :not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
  .sec-hd:has(> .sec-more) > .sec-more { grid-column: 2; grid-row: 1; }
  .sec-hd .sub { word-break: keep-all; }
}

/* D⑬ 멤버십(폰) — 「모든 멤버십은 USDT(테더)로 결제됩니다.」가 두 줄로 접히면 그림이 왼쪽 끝에 홀로 남았다 → 그림 위 · 글 아래(가운데) ·
   화면 끝은 다른 화면과 같은 박자(그림 바닥 32 + 바닥글 위 40) */
@media (max-width: 640px) { .mship { padding-bottom: var(--s7); } }
@media (max-width: 400px) { .mship-pay { flex-direction: column; gap: var(--s2); } }

/* D⑭ 랭킹 4위부터(≤360) — 등급 딱지는 늘 이름 아래 줄(짧은 이름만 옆에 붙어 줄 높이가 들쭉날쭉했다) */
@media (max-width: 360px) {
  .rankrow .bd > .row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* D⑮ 커뮤니티 글 줄 — 게시판 딱지 칸의 폭을 한 단위로(--f-base 의 6.6배).
   예전에는 딱지 칸(15px 글자의 6.6em = 99px)과 선물 특성 줄의 들여쓰기(12px 글자의 6.6em = 79px)가 달라 특성 줄이 20px 왼쪽에서 시작했다 */
.cml-li-g { padding-left: calc(var(--f-base) * 6.6 + 6px); }
@media (max-width: 900px) { .cml-li-g { padding-left: 0; } }
/* 태블릿 · 큰 폰(481~900) — 딱지 폭이 제각각(자유게시판 · 질문 · 사기제보)이라 제목이 62 · 94px 에서 들쭉날쭉 시작했다 → 같은 폭의 칸 */
@media (min-width: 481px) and (max-width: 900px) {
  .cml-board:not(.is-one) .cml-li-hd { flex: 0 0 calc(var(--f-base) * 6.6); }
  .cml-board:not(.is-one) .cml-li-g { padding-left: calc(var(--f-base) * 6.6 + 6px); }
}
/* 기프트자랑 글의 선물 칸 — 마지막 특성 줄의 밑금과 아래 안내의 윗금이 겹쳐 두 줄 금이 됐다 */
.cml-traits > .cml-trait:last-child { border-bottom: 0; }

/* D⑯ 시세 */
/* 「요즘 많이 본 매물」 그림 칸 — 다른 선물 그림과 같은 우물(화이트 화면에서 --surface-2 가 바탕과 같아 칸이 사라졌다) */
.pimg { background: var(--img-well); }
/* 컬렉션 화면 왼쪽 — 컬렉션 카드 · 기프티톡 숫자 카드 · 차트가 16px 간격(두 상자가 붙어 있었다) */
#pd-left { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }

/* D⑰ 가이드(#/howto) */
/* 점 목록 — 사이트 기본(ul { list-style: none })이 점을 지워 들여쓴 글만 떠 있었다 */
.hw-dots { list-style: disc; }
/* 넓은 화면 — 차례(200) + 글(760)을 가운데로. 오른쪽에 240~360px 이 비어 한쪽으로 쏠려 보였다(제목도 같은 폭에 맞춰 선다) */
@media (min-width: 1100px) {
  .wrap.hw { max-width: calc(200px + var(--w-read) + var(--s8) + var(--s5) * 2); }
}
/* 「처음이신가요?」 카드 미리보기 — 첫 줄만 두 줄까지(pages-community.js guidePreview) */
.guidecard .gd-pv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* D⑱ 안전거래 수칙 — 공식 마켓 아이디 링크(16px 줄)의 손가락 자리(줄 높이는 그대로) */
@media (hover: none) {
  .sf-mk { position: relative; }
  .sf-mk::after { content: ''; position: absolute; inset: -14px -4px; }
}

/* D⑲ 머리말 — 알림 숫자는 모든 폭에서 단추 오른쪽 위 모서리에 걸친다(넓은 화면에서 종 그림을 덮었다) */
.hdr .iconbtn .dot { top: -5px; right: -5px; border-color: var(--bg); }
/* 매물 등록 「불러오기」 — 주소 칸 옆에서 줄어들지 않는다(btn-tg 에서 사이트 주 색으로 바꾸며 옮긴 규칙) */
.tgbox #tgFetch { flex-shrink: 0; }

/* D⑳ 관리자 탭(≤980 가로 줄) — 단추가 이름 폭보다 줄어들지 않는다(빨간 숫자가 「가입 승인」의 「인」을 덮었다). 줄은 이미 옆으로 민다 */
@media (max-width: 980px) {
  .admnav .admgrp, .admnav button { flex-shrink: 0; }
}
/* (끝) 화면 문법 D */

/* ════════════════════════════════════════════════════════════════════
   [회원 화면] 동일 기프트 안내 · 운영자 확인 대기 · 이용 제한 안내 (2026-11-16 사장님 요청서 1~6 의 회원 쪽 화면)
   ════════════════════════════════════════════════════════════════════
   위 「화면 문법」의 토큰과 이름표(.note-* · .st · .btn-ctl · .btn-cta · .sec-hd)를 그대로 쓴다. 새 색은 없다.
     M① .st-HOLD        「운영자 확인 대기」 딱지 — 상태 딱지(.st)와 같은 모양(내 매물 카드 · 매물 상세)
     M② .dupebox        중복 등록 안내 칸 — 사장님 문구 + 「기존 판매글 수정」 · 「관리자에게 소유 확인 요청」(등록 화면 · 상태 변경 창 · 안내 창)
     M③ .ownreq         내정보 → 내 매물 아래 「소유 확인 요청」 줄
     M④ .preq-hold-note 받은 구매 요청 카드의 「운영팀 확인 중 — 수락 보류」 한 줄
     M⑤ .ipb            이용이 제한된 연결의 안내 화면 · 로그인 양식 안의 같은 안내(.ipb-inline) · 정지된 계정 안내(.auth-susp)
   관리자 화면의 것은 여기 두지 않는다(다른 구역). */

/* M① 운영자 확인 대기 — 「판매중」(초록) · 「예약중」(노랑)과 다른 조용한 파랑. 그림 위에서는 .gimg 가 다크 값으로 다시 정한다 */
.st-HOLD { color: var(--info-fg); background: var(--accent-soft); }
/* 가장 좁은 카드(320px 폰 · 그림 칸 137px)에서는 딱지 자리(그림 폭 − 46px)가 89px 인데 글이 100px 이라 「운영자 확인 …」으로 잘렸다
   (2026-11-16 교차 검토). 상태를 알리는 딱지는 끝까지 읽혀야 한다 — 그 폭에서만 앞의 점을 걷고 옆 여백을 줄인다(글자 크기는 그대로) */
@container gimg (max-width: 151.98px) {
  .gcard .gimg > .st-HOLD { padding: 0 4px; gap: 0; }
  .gcard .gimg > .st-HOLD::before { display: none; }
}
.ld-hold a { display: inline-block; margin-top: 2px; color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.ld-hold a b { color: inherit; }
/* 글 안의 링크 — 손가락 기기에서는 누르는 자리를 44px 로(줄 높이는 그대로 · 화면 문법의 ::after 방식) */
@media (hover: none) {
  .ld-hold a, .dupe-res .dupe-mine, .auth-susp a { position: relative; }
  .ld-hold a::after, .dupe-res .dupe-mine::after, .auth-susp a::after { content: ''; position: absolute; inset: -12px -6px; }
}

/* M② 중복 등록 안내 칸 — 알림줄 ④와 같은 문법: 조용한 면 + 왼쪽 3px 경고 금. 문구는 본문 색 그대로(칸 전체를 칠하지 않는다) */
.dupebox {
  display: grid; gap: var(--s3); padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--warn);
  border-radius: var(--r-md); min-width: 0;
}
.dupebox:focus { outline: none; }
.dupe-msg { display: flex; gap: var(--s3); align-items: flex-start; min-width: 0; }
.dupe-msg .ni { flex-shrink: 0; color: var(--warn); line-height: 0; margin-top: 3px; }
.dupe-msg p { flex: 1 1 0; min-width: 0; margin: 0; color: var(--text); font-size: var(--f-md); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
/* 단추 둘 — 넓으면 나란히, 좁으면 한 줄씩(글이 접혀도 높이가 따라온다 · 320px 에서 가로로 밀지 않는다) */
.dupe-acts { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; }
.dupe-acts > .btn { flex: 1 1 200px; min-width: 0; white-space: normal; height: auto; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.dupe-acts > .btn svg { flex-shrink: 0; }
/* 이 칸에서 먼저 권하는 단추 — 채우지 않는다(그 화면의 채운 큰 단추는 「매물 등록」 · 「저장」 하나다). 주 색의 테와 글자로만 앞세운다 */
.dupebox .btn.dupe-main { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-fg); font-weight: 700; }
.dupe-form { display: grid; gap: var(--s2); min-width: 0; }
.dupe-form label { font-size: var(--f-sm); font-weight: 600; color: var(--text-2); }
.dupe-form .textarea { min-height: 88px; width: 100%; }
.dupe-form-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dupe-form-acts > .btn { flex: 0 1 auto; }
.dupe-res.note { margin: 0; }
.dupe-res .dupe-mine { display: inline-block; font-weight: 700; color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.dupe-hint { margin: 0; }
/* 창 안(상태 변경 · 안내 창)에서는 창이 이미 면이다 — 테두리 면을 한 겹 더 두지 않고 왼쪽 금만 남긴다 */
.modal .dupebox { background: var(--surface-2); }

/* M③ 내정보 → 내 매물 아래 「소유 확인 요청」 */
.ownreq { margin-top: var(--s7); }
.ownreq-row { display: grid; gap: var(--s1); padding: var(--s4); min-width: 0; }
.ownreq-hd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }
.ownreq-hd > b { min-width: 0; overflow-wrap: anywhere; }
.ownreq-acts { margin-top: var(--s2); }

/* M④ 받은 구매 요청 — 수락이 보류된 까닭 한 줄(그림 + 글 · 단추 줄을 통째로 쓴다) */
.preq-hold-note { display: flex; gap: 6px; align-items: flex-start; flex: 1 1 100%; min-width: 0; line-height: 1.55; }
.preq-hold-note svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* M⑤ 이용이 제한된 연결의 안내 화면 — 가운데 카드 하나(승인 대기 화면 .authbox 와 같은 폭 감각 · 읽는 글이라 조금 넓다) */
.ipb { display: flex; justify-content: center; }
.ipb-card {
  display: grid; gap: var(--s4); width: 100%; max-width: 520px; margin: var(--s8) auto;
  padding: var(--s7) var(--s6); text-align: center; min-width: 0;
}
.ipb-ico { line-height: 0; color: var(--warn); }
.ipb-card h1 { margin: 0; font-size: var(--f-xl); line-height: 1.35; word-break: keep-all; text-wrap: balance; }
.ipb-lead { margin: 0; color: var(--text-2); line-height: 1.65; word-break: keep-all; }
.ipb-how {
  display: grid; gap: var(--s2); padding: var(--s4); text-align: left;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.ipb-how > b { color: var(--text); }
.ipb-how ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s2); list-style: decimal; color: var(--text-2); font-size: var(--f-sm); line-height: 1.6; }
.ipb-how ol > li { list-style: decimal; word-break: keep-all; overflow-wrap: anywhere; }
.ipb-how ol > li::marker { color: var(--accent-fg); font-weight: 700; }
.ipb-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3); }
.ipb-state:empty { display: none; }
.ipb-safe { margin: 0; line-height: 1.6; word-break: keep-all; }
.ipb-adm { justify-self: center; display: inline-flex; align-items: center; min-height: var(--ctl-h); padding: 0 var(--s3); color: var(--text-3); font-size: var(--f-sm); text-decoration: underline; text-underline-offset: 3px; }
.ipb-adm:hover { color: var(--text-2); }
.ipb-sample { text-align: left; }
@media (max-width: 480px) {
  .ipb-card { margin: var(--s5) auto; padding: var(--s6) var(--s4); }
  .ipb-card h1 { font-size: var(--f-lg); }
}
/* 로그인 양식 안의 같은 안내 · 정지된 계정 안내 — 알림줄(.note-warn) 안에 세로로 쌓는다 */
.ipb-inline, .auth-susp { display: grid; gap: var(--s2); min-width: 0; }
.ipb-inline > b, .auth-susp > b { word-break: keep-all; overflow-wrap: anywhere; }
.ipb-inline .ipb-go { margin-top: var(--s1); }
/* (끝) [회원 화면] 동일 기프트 안내 · 운영자 확인 대기 · 이용 제한 안내 */

/* ══════════════════════════════════════════════════════════════════════════════════════
   [관리자 화면] 기프트 중복 등록 · 회원 차단(IP 자동 차단 포함) · 회원 및 IP 차단 관리 (2026-11-16 사장님 요청서 3 · 4 · 5 · 6)
   pages-admin.js 의 dupesTab · dupeDetail · banDialog · banIpDialog · bansTab · listingsTab(확인 후 공개 대기).
   새 색 · 새 모양은 없다 — 있는 토큰과 있는 조각(.note · .badge · .chip · .msd-* · .tblwrap · .adm-stats)을 그대로 쓰고,
   여기는 자리 배치만 정한다. 이름표: dp-(사건 목록) · dpc-(사건 한 칸) · dpd-(사건 상세) · bn-(차단 표) · bnd-(차단 창) · lst-(매물 표).
   ══════════════════════════════════════════════════════════════════════════════════════ */
/* ① 잠금 경고(대시보드 · 사건 목록 맨 위) · 확인 대기 안내 */
.dp-index, .dp-holdnote { margin-bottom: var(--s4); }
.dp-index .btn, .dp-holdnote .btn { margin: var(--s1) 0 0 var(--s1); vertical-align: middle; }
.dp-indexerr { display: block; font-size: var(--f-xs); overflow-wrap: anywhere; }
/* ② 찾기 줄 · 거르개 두 줄 · 건수 */
.dp-find .input, .bn-find .input { flex: 1 1 200px; max-width: 340px; min-width: 0; }
.bn-find .select { flex: 0 1 190px; min-width: 0; }
.dp-filters { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.dp-total, .bn-total { margin: 0 0 var(--s3); font-size: var(--f-sm); }
.bn-total .btn { margin-left: var(--s1); height: var(--pill-h-sm); padding: 0 var(--s2); }
.lst-chips { margin-bottom: var(--s4); }
.lst-acts { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
/* ③ 사건 한 칸 — 딱지 줄 · 기프트 · 이름표 붙은 다섯 칸(판매글 · 회원 · 발생 · 소유 확인 · 접속 정보) · 단추 */
.dpc { min-width: 0; }
.dpc-gift { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); min-width: 0; }
.dpc-gift > b { font-size: var(--f-lg); overflow-wrap: anywhere; }
.dpc-gift > span { font-size: var(--f-sm); min-width: 0; overflow-wrap: anywhere; }
.dpc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4) var(--s5); margin: 0;
  padding-top: var(--s3); border-top: 1px solid var(--line); }
.dpc-grid > div { min-width: 0; }
.dpc-grid dt { margin-bottom: var(--s1); font-size: var(--f-xs); font-weight: 700; color: var(--text-3); }
.dpc-grid dd { margin: 0; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; font-size: var(--f-sm); overflow-wrap: anywhere; }
.dpc-l { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 6px; min-width: 0; }
.dpc-l > div { flex: 1 0 100%; }
.dpc-ft { justify-content: flex-end; }
.dpc-memo { flex: 1 1 200px; min-width: 0; font-size: var(--f-sm); overflow-wrap: anywhere; }
/* ④ 사건 상세 · 차단 창 — 판매글 · 회원 · IP 차단 줄(테 하나 안의 줄들) */
.dpd-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dpd-l { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--f-sm); }
.dpd-l:last-child { border-bottom: 0; }
.dpd-meta { line-height: 1.6; overflow-wrap: anywhere; }
.dpd-owner, .dpd-note { overflow-wrap: anywhere; }
.dpd-note { white-space: pre-wrap; }
.dpd-acts .btn { flex: 0 0 auto; }
.dpd-hist > .tblwrap, .js-bnd-histbox > .tblwrap { margin-top: var(--s2); }
.msd-sec > .hint, .msd-sec > .tsempty { margin: 0; }
/* ⑤ 차단 창 — 차단될 IP 상자 · 접속 이력 체크란 · 결과 목록 · 해제 단추 줄 */
.bnd-who { align-items: baseline; }
.bnd-ip { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; padding: var(--s3) var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.bnd-ipv { font-size: var(--f-lg); }
.bnd-none { margin: 0; font-size: var(--f-sm); }
.bnd-more > .bnd-hlist, .bnd-more > .hint, .bnd-more > .row { margin-top: var(--s2); }
.bnd-h { align-items: flex-start; }
.bnd-res { display: grid; gap: var(--s1); margin: 0; padding-left: 1.1em; list-style: disc; font-size: var(--f-sm); overflow-wrap: anywhere; }
.bnd-rel .btn { flex: 1 1 auto; }
.bn-period .mem-days { width: 84px; height: var(--ctl-h-sm); }
.bn-period .msd-ck { align-items: center; }
.bn-period .msd-ck input[type="radio"] { margin-top: 0; }
/* 회원 「관리」 창의 차단 칸 */
.au-ban .hint { margin: 0; }
.au-banwhy { overflow-wrap: anywhere; }
/* ⑥ 차단 표 — 여섯 칸(관리자 글 칸 약 1,000px 에 선다). 칸 안은 위아래로 쌓는다 */
.tblwrap > table.bn-table { min-width: 940px; table-layout: fixed; }
.bn-table th:nth-child(1) { width: 16%; } .bn-table th:nth-child(2) { width: 17%; } .bn-table th:nth-child(3) { width: 19%; }
.bn-table th:nth-child(4) { width: 12%; } .bn-table th:nth-child(5) { width: 13%; } .bn-table th:nth-child(6) { width: 23%; }
.bn-table th { white-space: normal; }
.bn-table td { vertical-align: top; }
.bn-cell { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); min-width: 0; }
.bn-cell > div { max-width: 100%; }
.tblwrap > table .bn-reason, .tblwrap > table .bn-cell { overflow-wrap: anywhere; word-break: normal; }
.bn-mgr { height: var(--pill-h-sm); padding: 0 var(--s2); }
.bn-link { margin-left: calc(var(--s2) * -1); white-space: normal; text-align: left; height: auto; min-height: var(--pill-h-sm); }
.bn-acts { display: flex; flex-wrap: wrap; gap: var(--s1); }
.bn-acts .btn { flex: 1 1 auto; padding: 0 var(--s2); white-space: normal; height: auto; min-height: 32px; line-height: 1.25; }
/* 창 안의 표(낱낱 기록 · 차단 기록) — 시각 · IP 는 한 줄(.adm 밖이라 따로 적는다). 사건 한 칸의 「사건 #n · 3분 전」도 접지 않는다 */
.modal .dtable .nowrap, .modal .dtable .gd-ip, .dpc .nowrap { white-space: nowrap; }
/* 손가락 기기 — 표 · 창 안의 작은 단추도 44px 자리를 갖는다.
   ★ 2026-11-16 교차 검토 — 빠져 있던 것들(36 · 24 · 20 · 32px 이었다): 확인 대기 안내의 「매물 탭에서 확인하기」 · 사건 상세의 「이 IP 직접 차단」 ·
     차단 창의 「고른 IP 차단」 · 차단 표의 「기프트 중복 사건 #n」 · 접는 줄(낱낱 기록 · 차단 · 해제 기록 · 접속 이력에서 IP 고르기) · 라디오 · 체크란 줄 ·
     확인 대기 매물의 첫 칸 「확인 후 공개」 */
@media (hover: none) {
  .bn-acts .btn, .dpd-acts .btn, .dpc-ft .btn, .bnd-rel .btn, .lst-acts .btn, .au-ban .btn, .bn-mgr, .bn-total .btn,
  .dp-holdnote .btn, .dp-index .btn, .dpd .msd-dl .btn, .bnd-more .btn, .bnd-lst + div .btn, .bn-link, .lst-pub-m .btn { min-height: var(--ctl-h); }
  .dpd .msd-ck, .bnd .msd-ck { min-height: var(--ctl-h); align-items: center; }
  .dpd .msd-ck input, .bnd .msd-ck input { margin-top: 0; }
  /* 접는 줄 — 세모(list-item)를 지키려고 display 는 그대로 두고 위아래 여백으로 44px 을 만든다 */
  .dpd details.esc-hist > summary, .bnd details.esc-hist > summary { padding-block: var(--s3); line-height: 20px; }
}
/* 좁은 화면(≤1240px) — 차단 표는 줄마다 한 장(이름표 · 값). 옆으로 미는 표보다 폰에서 읽기 쉽다.
   ★ 선은 「표가 실제로 서는 폭」이다: 표 940px + 관리자 메뉴 · 여백 약 276px = 1216px. 예전 선(1100px)과 그 사이(1101~1215px)에서는
     표가 글 칸보다 넓어 「해제」 칸이 잘렸다(1101px 에서 102px · 2026-11-16 교차 검토에서 잼) */
@media (max-width: 1240px) {
  .tblwrap > table.bn-table { display: block; min-width: 0; width: 100%; }
  .bn-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bn-table tbody { display: block; }
  .bn-table tr { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--line); }
  .bn-table tr:last-child { border-bottom: 0; }
  .bn-table td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--s3); padding: 0; border: 0; }
  .bn-table td::before { content: attr(data-th); font-size: var(--f-xs); font-weight: 700; color: var(--text-3); line-height: 1.5; }
  .dtable.bn-table tr:hover td { background: transparent; }
  .adm .dtable.bn-table tbody tr.rowwait td:first-child { box-shadow: none; }
  .adm .dtable.bn-table tbody tr.rowwait { box-shadow: inset 3px 0 0 var(--warn); }
}
@media (max-width: 480px) {
  .bn-table td { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .dp-find .input, .bn-find .input, .bn-find .select { flex: 1 1 100%; max-width: none; }
  .dpc-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ⑦ 창 안의 기록 표(사건의 낱낱 기록 · 차단 기록 — pages-admin.js evTable) — 폰(≤640px)에서는 줄마다 한 장(이름표 · 값).
      640px 짜리 표를 333px 창에 넣으면 「무엇」 칸이 한 낱말씩 쌓이고 IP · 사유 · 메모는 옆으로 밀어야 보였다 */
@media (max-width: 640px) {
  .tblwrap > table.ev-table { display: block; min-width: 0; width: 100%; }
  .ev-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ev-table tbody { display: block; }
  .ev-table tr { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--line); }
  .ev-table tr:last-child { border-bottom: 0; }
  .ev-table td { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: var(--s3); padding: 0; border: 0; overflow-wrap: anywhere; }
  .ev-table td::before { content: attr(data-th); font-size: var(--f-xs); font-weight: 700; color: var(--text-3); line-height: 1.5; }
  .dtable.ev-table tr:hover td { background: transparent; }
  .modal .dtable.ev-table .nowrap, .modal .dtable.ev-table .gd-ip { white-space: normal; }
}
/* ⑧ 매물 탭 「확인 후 공개」 — 좁은 화면(≤860px)에서는 표가 옆으로 밀려 마지막 칸이 화면 밖이다(375px 에서 x=599~688).
      이 화면의 주된 단추라 첫 칸(매물 이름 아래)에 같은 단추를 두고, 마지막 칸의 것은 감춘다. 넓은 화면은 그 반대 */
.lst-pub-m { display: none; margin-top: var(--s2); }
@media (max-width: 860px) {
  .lst-pub-m { display: block; }
  .lst-acts .lst-pub-w { display: none; }
}
/* ⑨ 차단 · 거절한 답의 「이 회원의 활성 판매글」 줄 */
.bnd-lst { font-size: var(--f-sm); }
.bnd-lst a { overflow-wrap: anywhere; }
/* (끝) [관리자 화면] 기프트 중복 등록 · 회원 및 IP 차단 관리 */

/* ── 자산 운영(포탈형 마켓 관리자 · 2026-11-16 B04 · pages-px-admin.js) ─────────────────────
   색 · 간격은 tokens.css 의 이름만. 새 색을 만들지 않았다. 폰(320)에서 가로로 밀리지 않게 칸은 접힌다 · 표는 .tblwrap 안에서만 옆으로 민다. */
.pxa .pxa-fixed { margin-bottom: var(--s4); }
.pxa .pxa-me { margin: 0 0 var(--s3); }
.pxa .pxa-tabs { overflow-x: auto; }
.pxa .pxa-gate { max-width: var(--w-read); display: flex; flex-direction: column; gap: var(--s4); }
.pxa .pxa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.pxa .pxa-feat { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; min-width: 0; }
.pxa .pxa-cfg { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.pxa .pxa-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--f-lg); word-break: break-all; }
.pxa .pxa-uri { word-break: break-all; font-size: var(--f-xs); }
.pxa h3 { margin: var(--s5) 0 var(--s3); }
.pxa-snap { white-space: pre-wrap; word-break: break-all; max-height: 50vh; overflow: auto; font-size: var(--f-xs);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); }
.pxa-codes { columns: 2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pxa-step { display: flex; flex-direction: column; gap: var(--s3); }
.pxa .pxa-secret { display: flex; flex-direction: column; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.pxa-rvout { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }


/* ── 지갑 관리 /wallet.html (2026-11-16 · 포탈형 마켓 B05 · 설계 01 §8.5 · wallet-page.js) ─────────────────────────────
   별도 문서라 머리말 · 바닥글이 없다. 색 · 간격은 tokens.css 만. 창은 이 문서의 작은 창(.wpg-modal) — SPA 의 G.modal 을 싣지 않는다. */
.wpg-body { min-height: 100vh; background: var(--bg); color: var(--text); }
.wpg-hdr { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border-bottom: 1px solid var(--line); max-width: var(--w-read); margin: 0 auto; }
.wpg-back { color: var(--text-2); text-decoration: none; font-size: var(--f-sm); }
.wpg-back:hover { color: var(--text); }
.wpg-title { font-size: var(--f-xl); margin: 0; }
.wpg { max-width: var(--w-read); margin: 0 auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.wpg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.wpg-h { font-size: var(--f-lg); margin: 0; }
.wpg-state { margin: 0; font-weight: 600; }
.wpg-warn { margin: 0; color: var(--warn-fg); }
.wpg-warn:empty { display: none; }
.wpg-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: start; }
.wpg-k { color: var(--text-2); font-size: var(--f-sm); }
.wpg-v { min-width: 0; }
.wpg-addr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }
.wpg-addr-short, .wpg-addr-full { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--f-sm); }
.wpg-addr-full { flex-basis: 100%; word-break: break-all; display: block; }
.wpg-addr-full[hidden] { display: none; }
.wpg-sm { height: var(--pill-h-md); padding: 0 var(--s3); font-size: var(--f-sm); }
.wpg-copied { font-size: var(--f-sm); }
.wpg-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wpg-acts .btn { min-height: var(--ctl-h); }
.wpg-pending { border-top: 1px solid var(--line); padding-top: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.wpg-link { color: var(--accent-fg); }
.wpg-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.wpg-hist li { min-width: 0; overflow-wrap: anywhere; }
.wpg-fixed { margin: 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--warn); background: var(--surface); color: var(--text-2); font-size: var(--f-sm); }
.wpg-loading { color: var(--text-3); }
.wpg-modal { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: var(--s4); z-index: 200; }
.wpg-modal[hidden] { display: none; }
.wpg-dialog { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s5); width: 100%; max-width: 480px; max-height: 90vh; overflow: auto;
  display: flex; flex-direction: column; gap: var(--s3); box-shadow: var(--sh-3); }
.wpg-dlg-hd { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wpg-form, .wpg-pick { display: flex; flex-direction: column; gap: var(--s3); }
.wpg-lbl { font-size: var(--f-sm); color: var(--text-2); }
.wpg-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
/* 2026-11-25 — 지갑 고르기는 그림 격자(공식 TON Connect 창과 같은 꼴 · 4칸 · 그림 위 · 이름 아래 두 줄까지) */
.wpg-app { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--s2); padding: var(--s2) 2px;
  background: none; border: 1px solid transparent; border-radius: var(--r-md); color: var(--text); cursor: pointer; font: inherit; text-align: center; }
.wpg-app:hover { background: var(--surface-hover); border-color: var(--line-2); }
.wpg-app img { width: 56px; height: 56px; border-radius: 14px; flex: none; background: var(--surface-2); }
.wpg-app span { font-size: var(--f-xs); line-height: 1.25; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wpg-apps > li[hidden] { display: none; }
.wpg-apps-more { align-self: center; }
.wpg-apps-more[hidden] { display: none; }
@media (min-width: 560px) { .wpg-apps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.wpg-qr { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.wpg-qr[hidden] { display: none; }
.wpg-qr .qr { width: min(260px, 70vw); height: auto; }
.qr-bg { fill: var(--qr-bg); }
.qr-on { fill: var(--qr-on); }
@media (max-width: 400px) { .wpg-card, .wpg-dialog { padding: var(--s4); } .wpg-row { grid-template-columns: minmax(0, 1fr); } }

/* ── 포탈형 마켓 회원 자산 화면 · 머리말 잔액 (2026-11-16 · B06 · 설계 01 §8.2~§8.4 · §8.7~§8.10 · px-core.js · pages-assets.js) ─────────────
   · 색 · 간격은 tokens.css 이름만. 움직임(갱신 중 깜박임)은 motion.css. 머리말 잔액은 981px 위 #pxBal, 아래는 #pxBar(머리말 바로 아래 얇은 띠).
   · 메뉴 띠 .pxnav 는 좁으면 **띠 안에서만** 가로로 민다(페이지 가로 넘침 없음 · 320/375/1280 실측). */
.gramprice { display: inline-flex; align-items: baseline; gap: .3em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gramprice .gp-u { font-size: .78em; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.gramprice.is-big { font-size: var(--f-xl); font-weight: 700; }
.gramprice.is-none { color: var(--text-3); }
.pxbal { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
.pxbal-n, .pxbar .pxbal-n { display: inline-flex; align-items: center; gap: var(--s1); color: var(--text); font-weight: 600; text-decoration: none; min-width: 0; }
.pxbal-n.is-stale { opacity: .55; }
.pxbal-go { font-size: var(--f-sm); color: var(--accent-fg); text-decoration: none; white-space: nowrap; }
.pxbal-spin { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); flex: none; }
@media (max-width: 980px) { .pxbal { display: none !important; } }
.pxbar { display: none; }
@media (max-width: 980px) {
  .pxbar { display: block; background: var(--surface); border-bottom: 1px solid var(--line); }
  .pxbar.hide { display: none !important; }
  .pxbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 40px; min-width: 0; }
  .pxbar-in .pxbal-n { overflow: hidden; }
}
.pxa { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.pxnav { display: flex; gap: var(--s1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; min-width: 0; max-width: 100%;
  padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.pxnav-a { flex: none; display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); padding: 0 var(--s3); border-radius: var(--r-full);
  color: var(--text-2); text-decoration: none; font-size: var(--f-sm); white-space: nowrap; }
.pxnav-a:hover { background: var(--surface-hover); color: var(--text); }
.pxnav-a.on { background: var(--accent-soft); color: var(--accent-fg); font-weight: 600; }
.pxa-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxa-sk { height: 120px; border-radius: var(--r-md); }
.pxa-h { font-size: var(--f-lg); margin: 0; }
.pxa-bal { margin: 0; display: flex; flex-direction: column; }
.pxa-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.pxa-row dt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pxa-row dd { margin: 0; text-align: right; }
.pxa-help { font-size: var(--f-xs); color: var(--text-3); }
.pxa-total { border-bottom: 0; }
.pxa-stamp { margin: 0; font-size: var(--f-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.pxa-kv { margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pxa-kv > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s3); }
.pxa-kv dt { color: var(--text-2); }
.pxa-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pxa-list, .pxa-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pxa-hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.pxa-hmain { min-width: 0; overflow-wrap: anywhere; }
.pxa-hside { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 var(--s2); text-align: right; }
.pxa-hmeta { grid-column: 1 / -1; font-size: var(--f-xs); overflow-wrap: anywhere; }
.pxa-st { font-size: var(--f-xs); color: var(--text-2); }
.pxa-filters { display: flex; flex-wrap: wrap; gap: var(--s3); }
.pxa-f { display: flex; align-items: center; gap: var(--s2); font-size: var(--f-sm); color: var(--text-2); }
.pxa-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pxa-acts .btn { min-height: var(--ctl-h); }
.pxa-more > summary { cursor: pointer; color: var(--accent-fg); min-height: var(--ctl-h-sm); display: flex; align-items: center; }
.pxa-fixed { margin: 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--warn); background: var(--surface); color: var(--text-2); font-size: var(--f-sm); }
.pxa-usdt { font-size: var(--f-sm); }
.pxa-form { display: flex; flex-direction: column; gap: var(--s3); }
.pxa-terms { display: flex; flex-direction: column; gap: var(--s3); }
.pxa-terms-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow: auto; padding: var(--s3); background: var(--surface-2); border-radius: var(--r-md); font-size: var(--f-sm); }
.pxa-terms-items { display: flex; flex-direction: column; gap: var(--s2); }
.pxa-chk { display: flex; align-items: flex-start; gap: var(--s2); min-height: var(--ctl-h-sm); }
.pxa-req { color: var(--warn-fg); }
.pxaddr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; }
.pxaddr-s { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 400px) { .pxa-card { padding: var(--s4); } .pxa-kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.pxa-chain { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pxaddr-s.is-full { flex-basis: 100%; }

/* ── 포탈형 마켓 B07 — 회원 자산 화면 다듬기 · GRAM 충전 (2026-11-17 · 설계 02 §8.1 · 화면 문법 --w-read) ─────────────
   · ③ 넓은 화면에서 내 자산 요약 표 · 카드가 화면 끝까지 늘어나 이름과 금액이 멀었다 — 메뉴 띠 아래 칸들은 읽는 폭(--w-read)까지.
     메뉴 띠(.pxnav)는 그대로 한 줄 전체. 좁은 화면(< 760)에서는 아무것도 바뀌지 않는다.
   · 충전 화면의 내역 줄 · 지갑 화면의 충전 송금 칸. 색 · 간격은 tokens.css 이름만. */
.pxa > .pxa-card, .pxa > .pxa-fixed, .pxa > .pxa-filters, .pxa > .note { width: 100%; max-width: var(--w-read); }
.pxa-sum .pxa-row dd { white-space: nowrap; }
.pxd-row .pxa-hmeta { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.pxd-ev { overflow-wrap: anywhere; }
.wpg-dep { border-color: var(--accent-line); }
.wpg-dep .wpg-acts { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ── 설계 98 §1.5 — 1인 시험 모드 띠(회원 px 화면 · 자산 운영 화면 · #/admin) · 「시험」 칩 ── */
.px-solobar { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--px-solotest-line); border-radius: var(--r-sm);
  background: var(--px-solotest-bg); color: var(--px-solotest-fg); font-size: var(--f-sm); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.px-solobar code { font-size: var(--f-xs); color: inherit; }
/* 2026-11-20 — 보관 서비스 약관 동의 안내줄(pages-assets.js px.termsNudge · 메뉴 띠 아래) */
.pxa-termsbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.pxa-termsbar > span { flex: 1 1 16em; min-width: 0; }
.px-solochip { display: inline-flex; align-items: center; height: var(--pill-h-sm); padding: 0 var(--s2); border-radius: var(--r-xs); border: 1px solid var(--px-solotest-line);
  background: var(--px-solotest-bg); color: var(--px-solotest-fg); font-size: var(--f-xs); font-weight: 700; white-space: nowrap; vertical-align: middle; }

/* ── 포탈 화면 다듬기 (2026-11-26 사장님 「포탈 화면부터 퀄리티 있게」) ─────────────────────────
   ① 두 칸 틀(.pxa-shell > .pxnav + .pxa-cols > .pxa | .pxa-side) — 1200px 위에서만 오른쪽 안내 칸이 선다(그 아래는 예전과 같은 한 줄).
      본문 칸(.pxa)은 예전 그대로라 「.pxa > … 읽는 폭」 규칙이 그대로 먹는다.
   ② 내 자산 맨 위 큰 잔액 판(.pxa-hero) — 색은 tokens.css 이름만.
   ③ 폰의 포탈 화면에서 떠 있는 AI 단추를 그림 하나로(html.ai-on-px — pages-ai.js).
   ④ 내 판매 줄: 판매가 · 수수료 · 수령액을 641px 위에서 한 줄 세 칸으로. */
.pxa-shell { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.pxa-shell > .px-solobar { margin: 0; }
.pxa-cols { min-width: 0; }
.pxa-side { display: none; }
@media (min-width: 1200px) {
  .pxa-cols.has-side { display: grid; grid-template-columns: minmax(0, var(--w-read)) minmax(260px, 340px); column-gap: var(--s8); align-items: start; }
  .pxa-side { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: var(--s5); min-width: 0; }
}
.pxa-side-art { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--img-well); aspect-ratio: 16 / 9; }
.pxa-side-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pxa-side-h { margin: var(--s2) 0 0; font-size: var(--f-sm); color: var(--text-3); font-weight: 600; }
.pxa-side-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pxa-side-l li + li { border-top: 1px solid var(--line); }
.pxa-side-l a { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: var(--ctl-h); padding: 0 var(--s4); color: var(--text); text-decoration: none; font-size: var(--f-sm); }
.pxa-side-l a:hover { background: var(--surface-hover); }
.pxa-side-l a span { color: var(--text-3); }

.pxa > .pxa-hero { width: 100%; max-width: var(--w-read); }
.pxa-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4);
  padding: var(--s6) var(--s5); border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 65%), var(--surface); }
.pxa-hero-t { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.pxa-hero-k { margin: 0; font-size: var(--f-sm); color: var(--text-2); font-weight: 600; }
.pxa-hero-v { margin: 0; font-size: var(--f-3xl); line-height: 1.1; }
.pxa-hero-v .gramprice { font-size: inherit; }
.pxa-hero-s { margin: 0; font-size: var(--f-sm); color: var(--text-2); }
.pxa-hero-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pxa-hero { position: relative; overflow: hidden; }
.pxa-hero-t, .pxa-hero-acts { position: relative; z-index: 1; }
.pxa-hero-art { flex: 0 0 auto; width: 100%; aspect-ratio: 21 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--img-well); order: -1; }
.pxa-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
@media (min-width: 641px) {
  .pxa-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 44%); grid-template-areas: "t art" "acts art"; align-items: end; column-gap: var(--s5); padding: var(--s5); }
  .pxa-hero-t { grid-area: t; align-self: start; }
  .pxa-hero-acts { grid-area: acts; }
  .pxa-hero-art { grid-area: art; aspect-ratio: 4 / 3; height: 100%; order: 0; }
}
.empty.has-art .empty-art { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto var(--s3); border-radius: var(--r-lg); background: var(--img-well); }
.pxa-none { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s3) 0; text-align: center; }
.pxa-none-art { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--img-well); }
@media (max-width: 480px) {
  .pxa-hero { padding: var(--s5) var(--s4); }
  .pxa-hero-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  html.ai-on-px .aifab { width: 56px; padding: 0; justify-content: center; }
  html.ai-on-px .aifab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 641px) {
  .pxs-row .pxs-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); padding: var(--s3); background: var(--surface-2); border-radius: var(--r-md); }
  .pxs-row .pxs-money > div { display: flex; flex-direction: column; gap: 2px; }
  .pxs-row .pxs-money dt { font-size: var(--f-xs); }
}

/* ── 머리말 글자 단추 줄 · 내정보 표 (2026-11-26 사장님 본보기 · 색은 기프트톡 파랑 그대로) ─────────────────────
   ① 넓은 화면(981px 위)에서 로그인한 회원: 「매물등록 · 내정보 · 알림 · 설정 · 로그아웃」 — 테 있는 작은 단추 한 줄(#meBtn 그림 단추는 감춘다).
      폰(980px 아래)은 예전 그대로(이 단추들은 늘 감춤) — 320px 머리말 실측은 바뀌지 않는다.
   ② 내정보 표(.mi) — 묶음 제목 · 「항목 | 값 | 변경」 줄 · 바꾸기 칩(.mi-seg). 머리말 창(.mi-modal)과 내정보 화면 「계정 · 설정」 탭이 함께 쓴다. */
.hbtn, .hbtn-ic { display: none; }
@media (min-width: 981px) {
  .hdr-r .btn.hbtn { display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); padding: 0 var(--s3);
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: var(--f-sm); font-weight: 600; }
  .hdr-r .btn.hbtn:hover { background: var(--surface-hover); color: var(--text); }
  .hdr-r .hbtn-ic { display: inline-flex; }
  /* 알림 · 설정 그림 단추도 글자 단추와 같은 테(본보기 — 한 줄이 한 결) */
  html.has-user .hdr-r #bellBtn, .hdr-r #setBtn { width: var(--ctl-h-sm); height: var(--ctl-h-sm); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
  html.has-user .hdr-r #meBtn { display: none; }
  .hdr-r #favBtn, .hdr-r #pxBal { order: 0; }
  .hdr-r #sellBtn, .hdr-r #admBtn { order: 1; }
  .hdr-r #bellBtn { order: 3; }
  .hdr-r #setBtn { order: 4; }
  .hdr-r #outBtn { order: 5; }
  .hdr-r #loginBtn { order: 6; }
  .hdr-r #joinBtn { order: 7; }
  /* 2026-11-26 사장님 — 왼쪽 위 언어 · 밝기 단추는 넓은 화면에서 걷고 ⚙ 환경 설정 창으로 모았다(폰은 그대로) */
  .hdr-l #langBtn, .hdr-l #themeBtn { display: none; }
}
/* GRAM 달러 시세 칸(2026-11-26 · 머리말 왼쪽 위 · Getgems 처럼 그림 + 값 한 덩이) — 넓은 화면에서만 */
.gramchip { display: none; }
@media (min-width: 981px) {
  .hdr-l .gramchip:not(.hide) { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl-h-sm); padding: 0 var(--s3);
    border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: var(--f-sm); font-weight: 700;
    font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
  .hdr-l .gramchip:hover { background: var(--surface-hover); color: var(--text); }
}
/* 매물 상세 판매자 줄 — 평점을 별 다섯 개로(2026-11-26 사장님 · ui.stars 반 개까지 + 숫자는 그대로 옆에) */
.ld-rt { gap: var(--s1); }
.ld-rt .stars { align-self: center; }
/* ☰ 메뉴(2026-11-26 사장님 · Getgems 본보기) — 머리말 맨 끝 단추 + 오른쪽 위에 붙는 창(폰은 아래에서 올라오는 시트 그대로) */
.hdr-r #hmBtn { order: 9; }
@media (min-width: 981px) {
  .hdr-r #hmBtn { width: var(--ctl-h-sm); height: var(--ctl-h-sm); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
  .ovl.ovl-hm { align-items: flex-start; justify-content: flex-end; padding: var(--s8) var(--s5) var(--s5); }
  .ovl-hm .modal.hm-modal { max-width: 380px; }
}
/* 2026-11-26 사장님 — 머리말의 보유 GRAM(#pxBal)과 폰의 잔액 띠(#pxBar)는 보이지 않는다(☰ 메뉴의 잔액 칸 하나로) · 「관리자」 단추도 ☰ 안 */
.hdr-r #pxBal#pxBal, #pxBar#pxBar, .hdr-r #admBtn#admBtn { display: none; }
/* 폰(980px 아래) — 언어 · 방패 · 찜 · 내 사진 · 관리자는 ☰ 안으로. 남는 자리에 GRAM 시세 */
@media (max-width: 980px) {
  .hdr .hdr-r #safeBtn#safeBtn, .hdr .hdr-r #meBtn#meBtn, .hdr .hdr-r #favBtn#favBtn, .hdr .hdr-r #admBtn#admBtn { display: none; }
  .hdr .hdr-l #langBtn#langBtn, .hdr .hdr-l #themeBtn#themeBtn { display: none; }
  .hdr-l .gramchip:not(.hide) { display: inline-flex; align-items: center; gap: var(--s1); height: var(--hdr-ctl); padding: 0 var(--s2);
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: var(--f-sm); font-weight: 700;
    font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
}
.hm { display: flex; flex-direction: column; gap: var(--s3); }
.hm-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.hm-prof { display: flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; min-width: 0; }
.hm-prof-t { display: flex; flex-direction: column; min-width: 0; }
.hm-prof-t b { font-size: var(--f-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-prof-t .muted { font-size: var(--f-sm); }
.hm-tgline { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; }
.hm-auth { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.hm-guest p { margin: 0; font-size: var(--f-sm); }
.hm-h { margin-top: var(--s2); font-size: var(--f-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.hm-bal { display: flex; align-items: center; gap: var(--s3); }
.hm-bal-n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s1); flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.hm-bal-n b { font-size: var(--f-lg); font-variant-numeric: tabular-nums; }
.hm-bal-n .muted { font-size: var(--f-sm); }
.hm-bal-u { flex-basis: 100%; font-size: var(--f-xs); color: var(--text-3); }
.hm-bal-go { flex-shrink: 0; border-radius: var(--r-full); }
.hm-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: var(--s1) 0; }
.hm-it { display: flex; align-items: center; gap: var(--s3); min-height: var(--ctl-h); padding: 0 var(--s1); color: var(--text); text-decoration: none; font-weight: 600;
  background: none; border: 0; border-radius: var(--r-sm); font: inherit; font-weight: 600; text-align: left; width: 100%; cursor: pointer; }
a.hm-it:hover, button.hm-it:hover { background: var(--surface-hover); }
.hm-it > svg { flex-shrink: 0; color: var(--text-2); }
.hm-set { cursor: default; flex-wrap: wrap; }
.hm-set > span { flex: 1 0 auto; white-space: nowrap; }
.hm-set .mi-seg { margin-left: auto; }
.hm-tg { justify-content: center; gap: var(--s2); flex-wrap: wrap; height: auto; min-height: var(--ctl-h); white-space: normal; }
/* 아주 좁은 폰(≤360) — 시세 칸의 TON 그림을 빼서 머리말 자리를 만든다(러시아어 「Войти」가 길다) */
@media (max-width: 360px) { .hdr-l .gramchip svg { display: none; } }
/* 러시아어(2026-11-26) — 낱말이 길어 폰의 내정보 단추 두 칸에 한 줄로 안 들어간다(320px 에서 화면 밖으로 밀렸다) — 접히게 */
@media (max-width: 640px) {
  .profile-hd .me-btns .btn { white-space: normal; height: auto; line-height: 1.2; padding-top: var(--s1); padding-bottom: var(--s1); }
}
.mi { display: flex; flex-direction: column; gap: var(--s5); }
.mi-sec { display: flex; flex-direction: column; gap: var(--s2); }
.mi-h { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--f-md); font-weight: 700; color: var(--accent-fg); }
.mi-tbl { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.mi-row { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: var(--cta-h); padding: var(--s2) var(--s4); }
.mi-row + .mi-row { border-top: 1px solid var(--line); }
.mi-row dt { color: var(--text-2); font-size: var(--f-sm); }
.mi-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.mi-ra { display: flex; justify-content: flex-end; }
.mi-act { min-height: var(--ctl-h-sm); }
.mi-note { margin: 0; font-size: var(--f-sm); }
.mi-nick { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }
.mi-badges { display: inline-flex; flex-wrap: wrap; gap: var(--s1); }
.mi-links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mi-seg { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.mi-seg-b { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl-h-sm); min-width: 64px; padding: 0 var(--s3);
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font: inherit; font-size: var(--f-sm); font-weight: 600; cursor: pointer; }
.mi-seg-b:hover { color: var(--text); background: var(--surface-hover); }
.mi-seg-b.on { background: var(--accent); color: var(--on-accent); cursor: default; }
.mi-modal .modal-bd { padding-top: var(--s2); }
/* ③ 로그인 · 가입 카드 — 「보기 어렵다」(사장님 2026-11-26): 이름표를 한 단 크게 · 글칸 바탕과 테를 또렷하게 · 카드 테두리. 높이(44 · 56)는 그대로 */
.authcard { border: 1px solid var(--line-2); }
.authcard .field > label { font-size: var(--f-md); }
.authcard .input, .authcard .select { background: var(--surface-2); border-color: var(--line-3); }
.authcard .input:focus, .authcard .select:focus { border-color: var(--accent); }
.authhd h1 { font-size: var(--f-3xl); }
@media (max-width: 480px) {
  .mi-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "v v"; row-gap: var(--s1); }
  .mi-row dt { grid-area: k; } .mi-row dd { grid-area: v; } .mi-ra { grid-area: a; }
}

/* ── 게임쇼 (2026-11-27 사장님 결정 · pages-gameshow.js) ─────────────────────────────
   목록 카드(#/gameshow) · 플레이 막대와 격리된 게임 틀(#/gameshow/<게임>). 값은 토큰만 쓴다.
   · 게임 틀 안은 게임 자신의 화면이다 — 사이트 밝기를 따라 두 벌(다크 = 노을과 밤 · 화이트 = 맑은 낮 · 2026-11-27 · 틀이 뜨기 전 바탕은 --gs-stage).
   · 플레이 화면(html.gs-play — pages-gameshow.js 가 붙이고 떠날 때 뗀다)에서는 바닥글과 떠 있는 AI 단추를 감추고 틀이 남은 높이를 채운다.
     틀의 높이는 JS 가 잰다(머리말 높이가 폭마다 다르다). 아래 70vh 는 재기 전 한순간의 값이다. :has() 는 쓰지 않는다. */
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s5); }
.gs-card { display: flex; flex-direction: column; min-width: 0; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gs-thumb { display: block; aspect-ratio: 16 / 9; background: var(--img-well); }
.gs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 그림은 두 장씩 — 다크 = 노을과 밤 · 화이트 = 맑은 낮(2026-11-27 · 카드 그림 · 목록 배너). 한 장만 보인다(감춘 쪽은 받지도 않는다 — loading=lazy) */
.gs .gs-on-light { display: none; }
:root[data-theme="light"] .gs .gs-on-dark { display: none; }
:root[data-theme="light"] .gs .gs-on-light { display: block; }
/* 목록 화면 맨 위의 큰 배너(2026-11-27 사장님이 시안 A 「비행장 축제」를 고르심 · 그림은 힉스필드 · 원본 브랜드원본/게임쇼-2026-11-27).
   글자 자리(왼쪽 · 폰은 아래)는 화면 바탕색으로 가린다 — 그래서 글자색은 여느 글자 토큰 그대로다(두 화면 모두 읽힌다). */
.gs-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(220px, 24vw, 340px); margin-bottom: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.gs-hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.gs-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--gs-hero-veil) 0, var(--gs-hero-veil) 24%, transparent 66%); }
.gs-hero-t { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); min-width: 0; max-width: min(46%, 520px); padding: var(--s7) var(--s8); }
.gs-hero-t h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.04em; color: var(--text); }
.gs-hero-t p { color: var(--text-2); font-size: var(--f-lg); line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .gs-hero { align-items: flex-end; min-height: 300px; }
  .gs-hero-art { object-position: 82% 30%; }
  .gs-hero::after { background: linear-gradient(180deg, transparent 0, transparent 22%, var(--gs-hero-veil) 68%); }
  .gs-hero-t { max-width: none; padding: var(--s5); }
  .gs-hero-t p { font-size: var(--f-md); }
}
/* 게임이 하나뿐이면 넓은 화면에서 가로로 긴 카드 */
@media (min-width: 861px) {
  .gs-grid.is-single .gs-card { flex-direction: row; max-width: none; }
  .gs-grid.is-single { grid-template-columns: minmax(0, 1fr); }
  .gs-grid.is-single .gs-thumb { flex: 0 0 44%; aspect-ratio: 16 / 9; }
  .gs-grid.is-single .gs-body { justify-content: center; gap: var(--s3); padding: var(--s6) var(--s7); }
  .gs-grid.is-single .gs-name { font-size: var(--f-2xl); }
  .gs-grid.is-single .gs-intro { flex: 0 0 auto; font-size: var(--f-lg); }
  .gs-grid.is-single .gs-go { align-self: flex-start; min-width: 200px; }
}
.gs-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); min-width: 0; padding: var(--s4) var(--s5) var(--s5); }
.gs-name { font-size: var(--f-xl); letter-spacing: -.01em; overflow-wrap: anywhere; }
.gs-intro { flex: 1 1 auto; color: var(--text-2); font-size: var(--f-md); line-height: 1.55; overflow-wrap: anywhere; }
.gs-go { align-self: stretch; margin-top: var(--s2); }
/* 「연습 게임 · 실제 GRAM 아님」 — 누르지 않는 표시(24px 딱지). 좁은 폰 · 러시아어에서는 접힌다(잘리면 안 되는 말이다) */
.badge.gs-practice { height: auto; min-height: var(--pill-h-sm); padding-top: 3px; padding-bottom: 3px; white-space: normal; line-height: 1.3; color: var(--warn-fg); background: var(--warn-soft); border-color: var(--warn-line); }
/* 가림 화면(2026-11-27 사장님 「게임쇼는 로그인해야지만 보이게 · 비회원은 볼 수 없게 블라인드 처리」) — 손님에게는 흐린 배너 + 자물쇠 + 로그인.
   색은 배너와 같은 토큰(--gs-hero-veil)만 쓴다. 게임 이름 · 카드 · 판의 어떤 것도 이 화면에 없다(서버도 손님에게 주지 않는다). */
.gs-hero.gs-locked { justify-content: center; align-items: center; min-height: clamp(320px, 48vh, 480px); text-align: center; }
.gs-locked .gs-hero-art { filter: blur(18px) saturate(.7); transform: scale(1.14); object-position: 50% 50%; }
.gs-hero.gs-locked::after { background: var(--gs-hero-veil); opacity: .78; }
.gs-lock { display: flex; flex-direction: column; align-items: center; gap: var(--s3); max-width: 520px; padding: var(--s7) var(--s5); }
.gs-lock-ic { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); }
.gs-lock h1 { font-size: var(--f-2xl); letter-spacing: -.02em; color: var(--text); }
.gs-lock p { color: var(--text-2); font-size: var(--f-md); line-height: 1.55; overflow-wrap: anywhere; }
.gs-lock-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s2); }
.gs-lock-acts .btn { min-width: 132px; }
.gs-lock .gs-lock-why { color: var(--text); font-weight: 600; }      /* 승인 전 회원에게 — 왜 못 보는지 한 줄 */
/* 운영자가 꺼 둔 게임(점검 중 · 관리자 → 게임쇼 · 2026-11-27 밤) — 카드는 남고 단추만 눌리지 않는다 */
.gs-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.badge.gs-off { color: var(--warn-fg); background: var(--warn-soft); border-color: var(--warn-line); }
.gs-go.is-off { cursor: default; color: var(--text-3); background: var(--surface-2); border-color: var(--line); pointer-events: none; }
/* 관리자 → 게임쇼(2026-11-27 밤 · pages-admin.js gameshowTab) — 두 칸 격자(넓은 화면) · 칸 안의 입력은 두 줄씩 */
.gsadm-game .panel h3 { margin: 0; font-size: var(--f-md); }
.gsadm-game { margin-top: var(--s5); }
.gsadm-game > .panel, .gsadm-game > .gsadm-grid { margin-bottom: var(--s4); }
.gsadm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.gsadm-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.gsadm-fields .gsadm-wide { grid-column: 1 / -1; }
@media (min-width: 720px) { .gsadm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .gsadm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gsadm-state { color: var(--text-2); }
.gsadm-state.is-off { color: var(--warn-fg); }
.badge.gsadm-on { color: var(--ok-fg, var(--text)); background: var(--surface-3); border-color: var(--line-2); vertical-align: middle; }
.badge.gsadm-off { color: var(--warn-fg); background: var(--warn-soft); border-color: var(--warn-line); vertical-align: middle; }
.gsadm-prev { width: 160px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--img-well); border: 1px solid var(--line); }
.gsadm-prev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gsadm-thumb { gap: var(--s2); }
.gsadm-file { cursor: pointer; position: relative; }
.gsadm-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.gsadm-find .input { flex: 1 1 200px; min-width: 0; }
.gsadm-acts { white-space: nowrap; text-align: right; }
.gsadm-acts .btn + .btn { margin-left: var(--s2); }
.gsadm-log > summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.gsadm-log[open] > summary { margin-bottom: var(--s2); }
.gsadm-lbl { font-size: var(--f-sm); color: var(--text-2); font-weight: 600; }
.gsadm-modes { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.gsadm-modes label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; cursor: pointer; }
/* 부정행위 안내(같은 날) — 목록 아래의 조용한 알림줄(화면 문법의 .note-warn 그대로 · 첫 문장만 굵게) */
.gs-fair { margin-top: var(--s6); }
.gs-fair b { display: block; }

.gs-stage { display: flex; flex-direction: column; min-width: 0; }
/* 막대는 **운영자 정산 화면에만** 있다(플레이 화면은 2026-11-27 사장님 지시로 막대 없이 게임 배너가 맨 위 — 목록으로 · 연습 표시 · 관전 안내는 배너가 한다).
   위에 붙는다(폰은 붙어 있는 머리말 아래 · 넓은 화면은 맨 위) — 「게임으로」 가는 길이 늘 보인다 */
.gs-bar { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-width: 0; padding-top: var(--s3); padding-bottom: var(--s3); }
.gs-back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--ctl-h-sm); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); font-size: var(--f-sm); font-weight: 700; white-space: nowrap; }
.gs-back:hover { color: var(--text); background: var(--surface-hover); }
.gs-bar-name { min-width: 0; font-size: var(--f-lg); letter-spacing: -.01em; overflow-wrap: anywhere; }
.gs-bar-name .muted { font-weight: 600; }
.gs-host { min-width: 0; background: var(--gs-stage); border-top: 1px solid var(--line); }
.gs-frame { display: block; width: 100%; height: 70vh; min-height: 440px; border: 0; background: var(--gs-stage); }
html.gs-play .page { padding-top: 0; padding-bottom: 0; min-height: 0; }
html.gs-play .ftr, html.gs-play .aifab { display: none; }
@media (max-width: 980px) {
  /* 폰 — 아래 고정 메뉴(.mnav) 몫만큼 비운다(바닥글이 없으니 그 몫을 여기서 갖는다) */
  html.gs-play .page { padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); }
  .gs-bar { padding-top: var(--s2); padding-bottom: var(--s2); }
  .gs-bar-name { font-size: var(--f-base); }
}
@media (max-width: 640px) {
  /* 폰 — 막대가 자리를 덜 먹게: 「게임으로」는 화살표만(이름은 aria-label 로 읽힌다) · 게임 이름은 한 줄 말줄임 */
  .gs-back { justify-content: center; min-width: var(--ctl-h-sm); padding: 0; }
  .gs-back > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gs-bar-name { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gs-bar { gap: 6px var(--s2); }
}
@media (hover: none) { .gs-back { min-height: var(--ctl-h); min-width: var(--ctl-h); } }
/* 맨 위 메뉴가 여덟 칸이 되었다(「게임쇼」) — 981~1240px 에서 칸 사이를 조금 좁힌다. 러시아어는 낱말이 길어 글자도 한 단 줄인다
   (그대로 두면 981px 러시아어 화면이 69px 옆으로 밀렸다 — 실측 · 헤드리스 크롬 981 · 1000 · 1024 · 1100 · 1280 × 한 · 영 · 러) */
@media (min-width: 981px) and (max-width: 1240px) {
  .gnb { gap: clamp(12px, 2.2vw, 28px); }
  html[lang="ru"] .gnb { gap: clamp(8px, 1.4vw, 18px); }
  html[lang="ru"] .gnb a { font-size: var(--f-base); }
}
/* ── 게임쇼 끝 ── */

/* ── 포탈형 마켓 빠짐 점검(2026-11-17 · identity-ui) — 320px 넘침 ─────────────
   · 내역 줄 오른쪽 칸(.pxa-hside — 위 규칙)은 금액 · 상태 딱지가 한 줄 최소폭을 만들지 않게 접힌다(금액은 제 덩이 nowrap 그대로) ·
     그 칸은 줄 폭의 절반까지만 넓어진다(fit-content — 금액 한 덩이보다 좁아지지는 않는다).
   · 좁은 폭에서 총 잔액(큰 글자)은 숫자와 단위 사이에서 접힐 수 있다. 색 · 간격은 토큰만. */
.pxa-hrow { grid-template-columns: minmax(0, 1fr) fit-content(50%); }
.pxa-f > span { white-space: nowrap; }   /* 기간 칸 둘이 더해져 좁은 폭에서 이름표가 「Ty/pe」로 꺾였다 — 이름표는 한 덩이, 칸이 다음 줄로 */   /* auto 이면 접힌 오른쪽 칸이 남는 폭을 다 가져가 왼쪽(종류 · 건 번호)이 0 이 됐다 */
@media (max-width: 400px) {
  .pxa-sum .pxa-row { grid-template-columns: minmax(0, 1fr) fit-content(60%); }   /* 접힌 금액 칸이 남는 폭을 다 가져가 이름표가 0 이 되지 않게 */
  .pxa-sum .pxa-row dd { white-space: normal; }
  .pxa-sum .gramprice.is-big { flex-wrap: wrap; }
}

/* ── 포탈형 마켓 B08 — GRAM 출금(회원) · 코인 출금 지급 화면(관리자) (2026-11-17 · 설계 02 §8.2 · §8.3 · 토큰만) ───────────── */
.pxw-row .pxa-hmeta { display: flex; flex-wrap: wrap; gap: 0 var(--s1); align-items: center; }
.pxw-steps { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); font-size: var(--f-xs); color: var(--text-3); }
.pxw-steps li { padding: 2px var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-xs); }
.pxw-steps li.is-done { color: var(--text-2); }
.pxw-steps li.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pxw-addr { overflow-wrap: anywhere; word-break: break-all; }
/* 2026-11-17 빠짐 점검 — 만료된 충전 요청 칸(만료 문장 + 새 요청 길) · 승인함 상세의 스냅샷 이름표 · 값(긴 값은 줄 안에서 접는다) */
.pxd-expired .note { margin-bottom: var(--s3); }
.pxa-snapkv dd { overflow-wrap: anywhere; }
.pxw-sum { margin: 0; }
.pxa-pay { margin-top: var(--s3); }
.pxa-pay code { overflow-wrap: anywhere; }

/* ── 포탈형 마켓 B09 — 관리자 「원장과 대사」 구분된 합계(설계 02 §7.4 · 토큰만) ─────────────────────────────
   · 이름표(dt)가 길면(「쓸 수 있는 지급 유동성」) 칸 폭을 밀어 1024 · 320 에서 가로로 5~30px 넘쳤다 — 이름표 칸이 줄어들고 금액은 오른쪽 한 줄. */
.pxa .pxa-led .panel { min-width: 0; }
.pxa .pxa-led .kv { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); }
.pxa .pxa-led .kv dt { overflow-wrap: anywhere; }
.pxa .pxa-led .kv dd { text-align: right; }
.pxa .pxa-led .pxa-list { font-size: var(--f-xs); overflow-wrap: anywhere; }

/* ── 포탈형 마켓 B11 — 내 기프트(보관함) · 기프트 상세 · 기프트 입고 (2026-11-17 · 설계 03 §8 · pages-vault.js · 토큰만) ─────────────
   · 「내 자산」 화면과 같은 문법: 메뉴 띠 아래 칸은 읽는 폭(--w-read) · 면 하나의 칸(.pxa-card) · 내역 줄(.pxa-hist).
   · 카드 격자는 그림 우물(--img-well) + 이름 두 줄 고정(ui.giftTitle card) + 상태 딱지(24px) + 전송 가능 줄. 폰 두 칸 · 넓으면 네 칸.
   · 그림은 ui.giftImage 그대로(.gimg 를 손으로 짜지 않는다). 색 · 간격은 tokens.css 이름만. */
.pxa > .pxv-chips, .pxa > .pxv-grid, .pxa > .pxv-back { width: 100%; max-width: var(--w-read); }
.pxv-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pxv-chip { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--pill-h-md); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-full);
  color: var(--text-2); text-decoration: none; font-size: var(--f-sm); white-space: nowrap; }
.pxv-chip b { color: var(--text); font-weight: 600; }
.pxv-chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-fg); }
.pxv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .pxv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pxv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); } }
.pxv-card { min-width: 0; }
.pxv-link { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  color: inherit; text-decoration: none; }
.pxv-link:hover { border-color: var(--accent-line); }
.pxv-link .gimg { border-radius: 0; }
.pxv-body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); min-width: 0; }
.pxv-nm { min-width: 0; font-weight: 600; }
.pxv-nm .gnm, .pxv-nm .gsub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxv-nm .gsub { font-weight: 400; color: var(--text-2); font-size: var(--f-sm); }
.pxv-st { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pxv-badge { min-height: var(--pill-h-sm); }
.pxv-badge.is-checking { color: var(--warn-fg); border-color: var(--warn); }
.pxv-badge.is-on_sale { color: var(--accent-fg); border-color: var(--accent-line); }
.pxv-why, .pxv-x { font-size: var(--f-xs); overflow-wrap: anywhere; }
.pxv-back { margin: 0; }
.pxv-back a { display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); color: var(--text-2); text-decoration: none; }
.pxv-detail { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 560px) { .pxv-detail { grid-template-columns: minmax(0, 1fr); } .pxv-dmedia { max-width: min(15rem, 70vw); } }
.pxv-dmedia { min-width: 0; }
.pxv-dmedia .gimg { border-radius: var(--r-md); }
.pxv-dinfo { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxv-title { margin: 0; font-size: var(--f-xl); overflow-wrap: anywhere; }
.pxv-note { margin: 0; font-size: var(--f-sm); }
/* 전체 점검 수리 F2(2026-11-18) — 「더 보기」 줄(내 기프트 · 판매 관리 · 주문 내역 — #52) · 기프트 상세의 판매 칸(#54). 화면 문법 그대로: 면 하나 · 간격은 토큰 */
.pxa > .pxv-more, .pxv-more { width: 100%; max-width: var(--w-read); display: flex; justify-content: center; margin-top: var(--s3); }
.pxv-more > .btn { min-height: var(--ctl-h); }
.pxv-sale { display: flex; flex-direction: column; gap: var(--s3); }
.pxv-sale > p { margin: 0; font-size: var(--f-sm); }
.pxv-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s1); color: var(--text-2); font-size: var(--f-sm); }
.pxv-inb .pxa-hmeta { display: flex; flex-wrap: wrap; gap: 0 var(--s1); align-items: center; }
.pxv-inb .pxa-hmeta a { overflow-wrap: anywhere; }
.pxv-empty .empty { padding: var(--s5) 0; }

/* ── 포탈형 마켓 B12 — 위탁판매 딱지 · 위탁 매물 상세 갈래 · 판매 관리 (2026-11-17 · 설계 04 §8 · ui.js · pages-px-market.js · pages-vault.js · 토큰만) ─────────────
   딱지는 PREMIUM · 등급 · VERIFIED 와 다른 색(--badge-consign-*). 카드의 GRAM 값은 일반 매물의 TON 마크와 섞지 않는다. */
.badge.badge-consign { display: inline-flex; align-items: center; min-height: var(--pill-h-sm); padding: 0 var(--s2); border-radius: var(--r-xs);
  background: var(--badge-consign-bg); border: 1px solid var(--badge-consign-line); color: var(--badge-consign-fg); font-size: var(--f-xs); font-weight: 600; white-space: nowrap; }
/* 값과 딱지는 한 덩이 — 좁은 카드(폰 두 칸)에서는 딱지가 다음 줄로 내려간다(카드 밖으로 나가지 않게) */
.gprice-cs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--s1); max-width: 100%; min-width: 0; }
.gprice .gramprice { white-space: nowrap; }
/* ── 설계 99 V2 (2026-11-19 사장님) — 마켓 표시: 「기프트톡 판매」(회사 마크 mark-96 그대로 + 글자) · 「직접 판매」 · 판매자 줄의 멤버십(그림만) ─────
   카드 문법 그대로: 딱지 24px(--pill-h-sm) · --r-xs · 값 바로 아래 제 줄(.gsale) — 모든 카드가 이 줄을 가지므로 한 줄의 판매자 줄 · 가는 금이 같은 높이에 선다.
   좁은 카드(320px 두 칸 · 카드 몸 약 115px)에서도 딱지는 줄 안에서 말줄임(넘침 없음). 색은 토큰만(--badge-consign-* · --badge-direct-*). */
.gsale { display: flex; align-items: center; justify-content: flex-start; min-width: 0; max-width: 100%; margin-top: var(--s1); }
.gsale .badge { max-width: 100%; min-width: 0; }
.badge.badge-consign { gap: var(--s1); padding-left: 5px; }
.badge.badge-consign > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bc-mk { flex: 0 0 auto; width: 14px; height: 14px; object-fit: contain; }
.badge.badge-direct { display: inline-flex; align-items: center; min-height: var(--pill-h-sm); padding: 0 var(--s2); border-radius: var(--r-xs);
  background: var(--badge-direct-bg); border: 1px solid var(--badge-direct-line); color: var(--badge-direct-fg); font-size: var(--f-xs); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 멤버십 그림만(compact) — 카드 판매자 줄(.gseller .badge 20px 규칙을 그대로 받는다) · 추천 띠 머리 */
.badge.badge-mship.is-compact { gap: 0; padding: 0 3px; }
.prem-hd .badge-mship.is-compact { flex: 0 0 auto; align-self: center; height: 20px; }
.prem .prem-sale { justify-content: center; margin-top: 0; }
/* 2026-11-19 교차 검토 — 320px 폰 두 칸(카드 몸 약 117px)에서 영어 「Sold by GiftTalk」(약 93px)가 「Sold by Gift…」로 잘렸다.
   좁은 화면에서만 딱지 안쪽 여백 · 마크 · 간격을 조여 글자 전체가 들어가게 한다(사전 값은 줄이지 않는다 · 움직임 없음) */
@media (max-width: 360px) {
  .gsale .badge.badge-consign { padding: 0 var(--s1); gap: 3px; letter-spacing: -.02em; }
  .gsale .bc-mk { width: 12px; height: 12px; }
}
/* (끝) 설계 99 V2 */
.pxm-detail { display: grid; grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s3); }
@media (max-width: 860px) { .pxm-detail { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } .pxm-media { max-width: min(17.5rem, 75vw); margin: 0 auto; width: 100%; } }
.pxm-media { min-width: 0; }
.pxm-media .gimg { border-radius: var(--r-lg); }
.pxm-info { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxm-tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pxm-title { margin: 0; font-size: var(--f-2xl); overflow-wrap: anywhere; }
.pxm-cap { margin: 0; font-size: var(--f-sm); }
.pxm-price { font-size: var(--f-xl); }
.pxm-box { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); min-width: 0; }
.pxm-box p { margin: 0; overflow-wrap: anywhere; }
.pxm-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pxs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.pxs-row { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.pxs-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); min-width: 0; }
.pxs-nm { min-width: 0; overflow-wrap: anywhere; }
.pxs-money dd { min-width: 0; }
.pxs-why { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.pxs-range, .pxs-mship { margin: 0; font-size: var(--f-sm); overflow-wrap: anywhere; }
.pxs-agree { display: flex; align-items: flex-start; gap: var(--s2); min-height: var(--ctl-h); cursor: pointer; }
/* 설계 98 T7 — 판매 등록 창 · 재동의 창의 「판매 약관 보기」(그 자리에서 펼친다 — 창을 겹치지 않는다) · 읽기 창의 체크 항목 목록 */
.pxs-terms { margin-top: var(--s1); }
.pxs-terms > summary { display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); color: var(--accent-fg); cursor: pointer; font-size: var(--f-sm); }
.pxs-terms-in { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.pxa-terms-list { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: var(--f-sm); }
.pxs-agree input { flex: 0 0 auto; margin-top: 0.15rem; }

/* ── 포탈형 마켓 B13 — 구매 확인 창 · 주문 내역 (2026-11-17 · 설계 04 §8.1 · §8.2 ORD01 · FEE02 · pages-px-market.js · 토큰만) ─────────────
   총 차감액만 굵게(한 줄에 둘을 섞지 않는다) · 주문 줄은 상품 | 금액 두 칸, 좁으면 위아래(가로 넘침 없음) */
.pxb { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxb p { margin: 0; overflow-wrap: anywhere; }
.pxb-sub { display: block; font-size: var(--f-sm); overflow-wrap: anywhere; }
.pxb-total dd { font-size: var(--f-lg); }
.pxo-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pxo-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); min-width: 0; }
.pxo-main { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.pxo-amt { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); min-width: 0; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pxo-amt { align-items: flex-start; text-align: left; } }

/* ── 포탈형 마켓 4단계 빠짐 점검 (2026-11-17 · 토큰만) — 예약 확정 · 취소 단추 줄(주문 내역) · 관리자 「기프트 입고」 「매물과 주문」 탭의 아래 갈래 · 긴 주소
   주문 줄의 단추는 줄 맨 아래 한 줄을 통째로 쓴다(좁은 폭에서 금액 칸과 다투지 않게) · 선물 주소 · 자산 열쇠는 어디서든 접힌다(320px 넘침 없음) */
.pxo-acts { display: flex; flex-wrap: wrap; gap: var(--s2); flex: 1 1 100%; min-width: 0; }
.pxa .pxa-sub { margin-top: var(--s2); }
.pxa-addr { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.pxo-why { margin: 0; flex: 1 1 100%; font-size: var(--f-sm); overflow-wrap: anywhere; }

/* ── 포탈형 마켓 B14 — 기프트 인출(pages-vault.js #/vault/out · 설계 03 §8 · 토큰만) ─────────────
   인출 줄은 위탁 줄(.pxs-row)과 같은 짜임 · 이름과 번호는 어디서든 접힌다(320px 넘침 없음) · 찾아 들어온 줄은 테두리만 바꾼다(색 · 움직임 없음) */
.pxg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.pxg-row { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.pxg-row.is-focus { border-color: var(--accent-line); }
.pxg-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); min-width: 0; }
.pxg-nm { min-width: 0; overflow-wrap: anywhere; }
.pxg-row .pxa-kv dd { min-width: 0; overflow-wrap: anywhere; }
.pxg-notes { margin: 0 0 var(--s3); padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s1); color: var(--text-2); overflow-wrap: anywhere; }
.pxg-notes b { color: var(--text); }

/* ── 포탈형 마켓 B15 — 문의(pages-cases.js #/cases · 설계 04 §8.1 · §8.2 「문의」) · 관리자 「분쟁과 환불」 탭 · 토큰만 ─────────────
   문의 줄 · 대화 · 첨부 · 양식은 어디서든 접힌다(320px 넘침 없음) · 내 글과 운영팀 글은 왼쪽 금 색으로만 가른다 · 내부 메모는 경고 금(관리자 화면만) */
.cs-list { list-style: none; margin: var(--s4) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.cs-row a { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); color: var(--text); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.cs-row-t { min-width: 0; overflow-wrap: anywhere; }
.cs-form { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s4) 0; min-width: 0; }
.cs-form .input, .cs-form .select { width: 100%; max-width: 100%; box-sizing: border-box; }
.cs-lbl { font-weight: 600; overflow-wrap: anywhere; }
.cs-secret { margin: var(--s2) 0 0; }
.cs-err { margin: 0; min-height: 1em; color: var(--warn-fg); overflow-wrap: anywhere; }
.cs-thread { list-style: none; margin: var(--s4) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.cs-thread > li { padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--line-2);
  border-radius: var(--r-sm); min-width: 0; overflow-wrap: anywhere; }
.cs-thread > li.cs-m-me { border-left-color: var(--accent-line); }
.cs-thread > li.cs-m-staff { border-left-color: var(--accent); }
.cs-thread > li.cs-internal { border-left-color: var(--warn); }
.cs-msg { margin: var(--s1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-files { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.cs-img { display: block; max-width: 100%; max-height: 360px; height: auto; border-radius: var(--r-sm); margin-top: var(--s2); }
.cs-decision { margin: var(--s4) 0; min-width: 0; overflow-wrap: anywhere; }
.cs-fake { margin-top: var(--s6); }
/* B15 반박 검증(2026-11-17) — 관리자 보정안 작성 창(칸 나눈 양식 · 토큰만) */
.pxa-adj { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxa-adj .input, .pxa-adj .select { width: 100%; max-width: 100%; box-sizing: border-box; }
.pxa-adj .pxa-chk span { overflow-wrap: anywhere; }
.pxa-adj .note { margin: 0; }
.pxa-adj [hidden] { display: none; }

/* ── B16 — 자산 운영: 운영 현황 구역 · 내보내기 · 침해 표시(토큰만) ── */
.pxa .pxa-ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.pxa .pxa-ovgrid > .panel { min-width: 0; }
.pxa .pxa-ovgrid .kv dd { overflow-wrap: anywhere; min-width: 0; }
.pxa .pxa-bad { color: var(--danger-fg); }
.pxa .pxa-exform { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s3); align-items: end; margin-bottom: var(--s4); }
.pxa .pxa-exform .input, .pxa .pxa-exform .select { width: 100%; max-width: 100%; box-sizing: border-box; }
/* 운영 현황 칸의 이름표는 길다(영어) — 이름표 칸이 글자 폭만큼 늘어 320 · 375 에서 칸이 넘쳤다(실측) → 이름표 칸도 줄고 접힌다 */
.pxa .pxa-ovgrid .kv { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pxa .pxa-ovgrid .kv dt { min-width: 0; overflow-wrap: anywhere; }

/* ── 5단계 빠짐 점검(2026-11-17) — 내역 줄의 「이 건 문의하기」(REF06 · 토큰만) ── */
.pxa-ask { white-space: nowrap; }
.pxo-ask { flex: 1 1 100%; min-width: 0; font-size: var(--f-sm); }

/* ── 전체 점검 수리 F3(2026-11-18) — 주문 내역 줄의 표시 · 주문 상세 창 · 판매 관리의 예약 줄 · 거래 내역의 수수료 줄(토큰만 · 화면 문법 그대로) ──
   · .pxo-flag — 주문 줄의 「문의 확인 중」 · 「기프트 반환됨」(누르지 않는 딱지 · .badge 24px)
   · .pxo-ask — 「상세 · 영수증」 단추와 「이 건 문의하기」가 한 줄(좁으면 접힌다)
   · .pxod — 주문 상세 창: [그림 96 | 이름 · 특성 · 주문번호] → 알림줄 → 이름표 · 값(.pxa-kv) → 영수증. 상자 안에 상자를 두지 않는다
   · .pxs-resv — 판매 관리: 예약 중에 가격을 바꾼 위탁의 「진행 중인 예약 주문」 한 줄(알림줄 .note 그대로)
   · .pxa-hnet — 거래 내역 판매 줄의 「수수료 · 받은 금액」(금액 아래 한 줄을 다 쓴다) */
.pxo-flag { align-self: flex-start; }
.pxo-ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.pxod { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pxod-hd { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.pxod-media { flex: 0 0 6rem; width: 6rem; min-width: 0; }
.pxod-media .gimg { border-radius: var(--r-md); }
.pxod-t { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; overflow-wrap: anywhere; }
.pxod .sec-hd { margin: var(--s2) 0 0; }
.pxod-keys { margin: 0; padding-left: var(--s5); list-style: disc; font-size: var(--f-sm); color: var(--text-2); overflow-wrap: anywhere; }
.pxod-hash { overflow-wrap: anywhere; }
.pxs-resv { margin: var(--s2) 0 0; }
.pxa-hnet { flex: 1 1 100%; font-size: var(--f-sm); overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════════════════════════════════════
   전체 점검 수리 F4 (2026-11-18 · 포탈형 마켓) — 값은 tokens.css 의 것만(새 색 없음)
   ① 회원 내역 줄의 글자 링크(「이 건 문의하기」 · 「송금 안내 보기」 · 「충전 문의」)를 단추 꼴로 — 손가락 기기에서 누르는 자리 44px(#64)
   ② 입고 「보내 주세요」 단계의 공식 보관 계정 칸 — 내역 줄 안의 큰 칸(#64)
   ③ 자산 운영 설정 양식 — 열쇠 이름표 · 설명 · 환산 줄 · 「전체 중단」 · 빠진 것 목록(#59 · #57 · #60)
   ═══════════════════════════════════════════════════════════════════════════ */
.pxa-ask, .pxa-go { display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-xs);
  background: var(--surface); color: var(--text-2); font-size: var(--f-sm); font-weight: 600; white-space: nowrap; text-decoration: none; }
.pxa-ask:hover, .pxa-go:hover { border-color: var(--line-3); color: var(--text); }
@media (hover: none) { .pxa-ask, .pxa-go { min-height: var(--ctl-h); } }
/* 같은 줄의 작은 단추(신청 취소 · 요청 닫기 · 취소)도 손가락 기기에서는 같은 높이 — 한 줄에 두 높이를 두지 않는다 */
@media (hover: none) { .pxa-hmeta .btn-sm { height: var(--ctl-h); } }
.pxa-hmeta .pxa-ask, .pxa-hmeta .pxa-go, .pxa-hmeta .js-pxv-cancel { margin: var(--s1) 0 0 var(--s1); }
.pxd-ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--f-sm); }
.pxd-ask > .muted { flex: 1 1 14em; min-width: 0; }
.pxv-send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s2) 0; padding: var(--s3) var(--s4);
  border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--r-xs); }
.pxv-send-t { flex: 1 1 14em; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); overflow-wrap: anywhere; }
.pxv-send-t > .muted { font-size: var(--f-sm); }
.pxv-send-a { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.pxv-send-a .btn, .pxa .btn.pxc-tg { max-width: 100%; white-space: normal; height: auto; min-height: var(--ctl-h); overflow-wrap: anywhere; text-align: center; }
.pxa .btn.pxc-tg { padding-top: var(--s2); padding-bottom: var(--s2); }
.pxv-chk { margin: 0 0 var(--s2); font-size: var(--f-sm); }
.pxa .pxa-kf { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.pxa .pxa-kcode { font-size: var(--f-xs); font-weight: 400; overflow-wrap: anywhere; }
.pxa .pxa-kdesc, .pxa .pxa-khint { margin: 0; font-size: var(--f-sm); overflow-wrap: anywhere; }
.pxa .pxa-khint { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.pxa .pxa-khint > * { min-width: 0; }
.pxa .pxa-khint > .js-pxa-conv:empty { display: none; }
.pxa .pxa-kf .input[aria-invalid="true"] { border-color: var(--danger-line); }
.pxa .pxa-allstop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s4); }
.pxa .pxa-allstop .btn { min-height: var(--ctl-h); }
.pxa .pxa-allstop > .muted { flex: 1 1 16em; min-width: 0; font-size: var(--f-sm); }
.pxa .pxa-miss { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); font-size: var(--f-sm); overflow-wrap: anywhere; }
.pxa .pxa-miss-h { margin: var(--s2) 0 0; font-weight: 600; color: var(--text-2); }
.pxa .pxa-miss ul { margin: 0; padding-left: var(--s5); }


/* ── B17 P3 「내 기프트」 짜임(설계 96 §4 · 사장님 결정 4 — 차례만 기존 마켓처럼 · 색 · 모양은 화면 문법 그대로) ─────────────────────
   탭 둘(.tabs) → 행동 줄(.pxv-acts · 44px · 그림 + 글) → 격자(.pxv-grid) · 행동 뒤 알림 줄(.note-ok) · 진행 알림줄(.note-info) ·
   기프트 상세의 아래 단추 줄(.pxv-dacts — 폰(≤860)에서 화면 아래에 붙는다 · 바닥글 자리는 html.has-stickycta · AI 단추는 html.ai-on-vault-gift) ·
   「기프트 추가」 창 세 걸음 · 판매 화면 머리 · 참고 최저가 칸. 새 색 없음(tokens.css 이름만). */
.pxa > .pxv-tabs, .pxa > .pxv-acts, .pxa > .pxv-flash, .pxa > .pxv-pend, .pxa > .pxv-paused, .pxa > .pxv-pickbar, .pxa > .pxv-dacts, .pxa > .pxv-sellhd { width: 100%; max-width: var(--w-read); }
.pxa > .pxv-tabs { margin-bottom: 0; }
.pxv-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); gap: var(--s2); }
.pxv-act { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--ctl-h); min-width: 0; }
.pxv-act-ic { display: inline-flex; flex: 0 0 auto; }
.pxv-act-t { min-width: 0; }
@media (max-width: 480px) {
  .pxv-acts { grid-auto-columns: minmax(0, 1fr); }
  .pxv-act { flex-direction: column; gap: 2px; height: auto; padding: var(--s1) var(--s1); white-space: normal; line-height: 1.2; font-size: var(--f-sm); text-align: center; }
}
.pxv-flash, .pxv-pend, .pxv-paused, .pxv-pickbar { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.pxv-flash > svg { flex: 0 0 auto; }
.pxv-flash-t, .pxv-pend > span, .pxv-paused > span, .pxv-pickbar > span { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.pxv-flash .btn, .pxv-pend .btn, .pxv-pickbar .btn { flex: 0 0 auto; min-height: var(--ctl-h-sm); }
.pxv-flash .btn-icon { width: var(--ctl-h-sm); padding: 0; }
@media (hover: none) { .pxv-flash .btn, .pxv-pend .btn, .pxv-pickbar .btn { min-height: var(--ctl-h); } .pxv-flash .btn-icon { width: var(--ctl-h); } }
button.pxv-link { width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pxv-card.is-pick .pxv-link { border-color: var(--accent-line); }
.pxv-card.is-off .pxv-link { cursor: default; border-style: dashed; }
.pxv-card.is-off .pxv-link:hover { border-color: var(--line-2); }
.pxv-off { padding: 0 var(--s3) var(--s3); font-size: var(--f-xs); overflow-wrap: anywhere; }
.pxv-kv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s1); font-size: var(--f-sm); min-width: 0; overflow-wrap: anywhere; }
.pxv-traits { margin: 0; }
.pxv-traits .v { overflow-wrap: anywhere; }
.pxv-floor { display: flex; flex-direction: column; gap: var(--s2); }
.pxv-fkv { margin: 0; }
.pxv-fkv dd { overflow-wrap: anywhere; }
.pxv-fsrc { margin: 0; font-size: var(--f-xs); overflow-wrap: anywhere; }
.pxv-dacts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pxv-dacts > .btn { min-width: 0; }
@media (max-width: 860px) {
  .pxa > .pxv-dacts { position: fixed; left: 0; right: 0; z-index: 90; width: auto; max-width: none; flex-wrap: nowrap;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); padding: var(--s2) var(--s4) var(--s3);
    background: linear-gradient(180deg, transparent 0%, var(--bg) 34%); }
  .pxa > .pxv-dacts > .btn { flex: 1 1 0; white-space: normal; height: auto; min-height: var(--ctl-h); line-height: 1.2; text-align: center; }
  .pxa > .pxv-dacts > .btn-cta { min-height: var(--cta-h); }
  html.ai-on-vault-gift .aifab { display: none; }
}
.pxv-add { display: flex; flex-direction: column; gap: var(--s3); }
.pxv-add > p { margin: 0; }
.pxv-add-steps { gap: var(--s3); color: var(--text); font-size: var(--f-base); }
.pxv-add-steps > li > b, .pxv-add-steps > li > span { display: block; }
.pxv-add-steps > li > span.muted { font-size: var(--f-sm); margin-top: 2px; }
.pxv-acct { display: flex !important; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s1) 0; overflow-wrap: anywhere; }
.pxv-acct a { font-weight: 600; }
.pxv-sellhd { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.pxv-sellhd .gimg { width: 48px; flex: 0 0 48px; border-radius: var(--r-sm); }
.pxv-sellhd .pxv-nm { min-width: 0; overflow-wrap: anywhere; }
.pxs-calc dd b { font-weight: 700; }
/* 관리자 설정 양식 — 사장님 결정값 한 줄 · 「결정값 채우기」 · 「결정값과 다름」(조용한 딱지 · 틀렸다는 뜻이 아니다) */
.pxa .pxa-dec { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin: var(--s1) 0 0; font-size: var(--f-sm); overflow-wrap: anywhere; }
.pxa .pxa-dec-diff { color: var(--text-2); }
.pxa .pxa-decbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.pxa .pxa-decbar > .muted { flex: 1 1 16em; min-width: 0; font-size: var(--f-sm); }
.pxv-flash .pxv-flash-go { white-space: nowrap; }
.pxv-fkv > .pxv-fl { display: contents; }
.pxv-sellhd .pxv-thumb { box-shadow: none; }
.pxv-add-steps { list-style: decimal; padding-left: 1.6em; }
.pxv-add-steps > li { display: list-item; }
.pxv-add-steps > li::marker { font-weight: 700; color: var(--accent-fg); }
.btn.pxv-add-go { flex: 1 1 100%; white-space: normal; height: auto; min-height: var(--cta-h); max-width: 100%; min-width: 0; text-align: center; line-height: 1.25; }
.pxa .pxa-outfacts dd > span { display: inline-block; margin-right: var(--s3); white-space: nowrap; }
/* P3 검증 — 보관 중 격자 아래 「참고 최저가 · 올라온 최저가(팔린 값 아님) · see.tg」 한 줄 */
.pxa > .pxv-gfloor { width: 100%; max-width: var(--w-read); }

/* 2026-11-20 — 관리자 사건 「답변 · 메모」 창의 그림 첨부(pages-px-admin.js casePicker) · 토큰만 */
.cs-picks { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.cs-picks:empty { display: none; }
.cs-pick { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); min-width: 0; }
.cs-pick-img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); background: var(--line-2); }
.cs-pick-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cs-pick .btn { flex: none; }
.cs-pick-note { margin: var(--s2) 0 0; overflow-wrap: anywhere; }

/* 2026-11-26 디자인 점검 — 첫 화면 공지 줄(숫자 칸과 「신규 매물」 사이)이 아래 구역 제목에 붙어 있었다(위 72px · 아래 0).
   위는 숫자 칸 쪽으로 조금 당기고 아래는 구역 사이 간격만큼 띄운다 */
#homebody > .note { margin: calc(-1 * var(--s5)) 0 var(--s8); }


/* ── 게임쇼 정산 (2026-11-28 사장님 「조금 더 편하게 볼 수 있게 정산표 잘 만들어주세요 · 게임명 : 게임명 : 이런 식으로 분류」 · pages-admin.js gsettleTab) ──
   위에서부터: 기간(빠른 단추 다섯 + 날짜 둘) → 전체 합계 숫자 넷(회사 손익이 가장 무겁다) → 게임별 표 → 「게임명 ○○」마다 날짜별 표.
   · 숫자는 전부 오른쪽 정렬 · 같은 폭 숫자(tabular) · 손익은 부호와 색(오른 것 --ok-fg · 내린 것 --danger-fg) · 0 은 흐리게(--text-4) · 합계 줄은 굵게 + 위 굵은 금.
   · 색은 토큰만 쓴다(두 화면 밝기 모두) · 표는 좁으면 표 안에서만 옆으로 민다(.tblwrap — 화면은 밀리지 않는다). */
.gsst-hd { margin-bottom: var(--s4); }
.gsst-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.gsst-presets { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; }
.gsst-range { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; }
.gsst-range .input { width: 160px; max-width: 100%; height: var(--ctl-h-sm); min-height: 0; }
.gsst-range .btn { height: var(--ctl-h-sm); }
@media (hover: none) { .gsst-range .input, .gsst-range .btn { height: var(--ctl-h); } }
.gsst > .note { margin-bottom: var(--s4); }
.gsst-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s6); }
.gsst-kpi { min-width: 0; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.gsst-kpi.is-main { border-color: var(--line-3); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); }
.gsst-k { font-size: var(--f-sm); font-weight: 700; color: var(--text-3); }
.gsst-v { margin-top: var(--s2); font-size: var(--f-2xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gsst-unit { margin-left: 6px; font-size: var(--f-sm); font-weight: 700; letter-spacing: 0; color: var(--text-3); }
.gsst-s { margin-top: var(--s1); font-size: var(--f-xs); color: var(--text-3); line-height: 1.5; }
.gsst-up { color: var(--ok-fg); }
.gsst-down { color: var(--danger-fg); }
.gsst-zero { color: var(--text-4); }
.gsst-sec { margin-bottom: var(--s6); }
.gsst-tbl td.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gsst-tbl td .badge { vertical-align: middle; }
.gsst-tbl tfoot td { font-weight: 800; border-top: 2px solid var(--line-3); border-bottom: 0; background: var(--surface-2); }
.gsst-tbl tr.gsst-idle td b { font-weight: 600; color: var(--text-3); }
.gsst-dow { margin-left: 6px; font-size: var(--f-xs); color: var(--text-3); }
.gsst-dow.gsst-sun { color: var(--danger-fg); }
.gsst-game { margin-top: var(--s6); }
.gsst-gh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); min-width: 0; }
.gsst-gh h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; margin: 0; font-size: var(--f-lg); overflow-wrap: anywhere; }
.gsst-lbl { font-size: var(--f-sm); font-weight: 700; color: var(--text-3); }
.gsst-note { margin-top: var(--s5); font-size: var(--f-xs); color: var(--text-3); line-height: 1.6; }
.gsadm-settle { margin-left: var(--s2); vertical-align: middle; }
/* 거래 없는 날 접기 — 줄만 숨긴다(합계는 그대로) */
.gsst.is-hide-idle .gsst-tbl tr.gsst-idle { display: none; }
@media (max-width: 1180px) { .gsst-v { font-size: var(--f-xl); } }
/* 폰(≤700px) — 표를 옆으로 밀면 가장 중요한 「회사 손익」이 화면 밖이었다. 줄마다 [날짜 · 게임명 | 회사 손익] 한 줄 + 작은 칸(이름표는 data-l)으로 바꾼다.
   마크업은 같은 표 그대로다 — 머리 줄은 눈에서만 감춘다. */
@media (max-width: 700px) {
  .gsst .tblwrap { overflow-x: visible; }
  .gsst .tblwrap > .gsst-tbl { min-width: 0; width: 100%; display: block; }
  .gsst-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gsst-tbl tbody, .gsst-tbl tfoot { display: block; }
  .gsst-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2) var(--s3); padding: var(--s3) var(--s1); border-bottom: 1px solid var(--line); }
  .gsst-tbl tfoot tr { border-bottom: 0; border-top: 2px solid var(--line-3); }
  .adm .gsst-tbl tbody tr td, .adm .gsst-tbl tbody tr:nth-child(even) td, .adm .gsst-tbl tbody tr:hover td, .gsst-tbl tfoot td { display: block; padding: 0; border: 0; background: transparent; min-width: 0; }
  .gsst-tbl td:first-child { grid-column: 1 / 3; grid-row: 1; font-size: var(--f-md); overflow-wrap: anywhere; }
  /* 작은 칸은 모두 왼쪽 정렬(관리자 표의 숫자 오른쪽 정렬 · 줄무늬 규칙보다 세게) — 회사 손익만 첫 줄 오른쪽 끝 */
  .adm .gsst-tbl tbody td.tnum, .adm .gsst-tbl tfoot td.tnum { text-align: left; }
  .adm .gsst-tbl tbody td.gsst-pl, .adm .gsst-tbl tfoot td.gsst-pl { grid-column: 3; grid-row: 1; text-align: right; font-size: var(--f-md); font-weight: 800; }
  .gsst-tbl td.gsst-none { grid-column: 1 / -1; }
  .gsst-tbl td[data-l]:not(.gsst-pl) { font-size: var(--f-sm); white-space: normal; overflow-wrap: anywhere; }
  .gsst-tbl tfoot td[data-l]:not(.gsst-pl) { font-weight: 700; }
  .gsst-tbl td[data-l]:not(.gsst-pl)::before { content: attr(data-l); display: block; font-size: var(--f-xs); font-weight: 600; color: var(--text-3); }
}
@media (max-width: 700px) {
  .gsst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsst-kpi { padding: var(--s3) var(--s4); }
  .gsst-v { font-size: var(--f-lg); white-space: normal; overflow-wrap: anywhere; }
  .gsst-unit { display: block; margin: 2px 0 0; }
  .gsst-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
  .gsst-range .input { width: 100%; }
  .gsst-range .btn { grid-column: 1 / -1; }
}
/* 아주 좁은 폰(≤380px) — 날짜 칸 둘이 한 줄에 서면 글자가 달력 그림에 가린다. 한 칸씩 쌓고 물결표는 뺀다 */
@media (max-width: 380px) {
  .gsst-range { grid-template-columns: minmax(0, 1fr); }
  .gsst-range > span { display: none; }
}
/* 그 게임의 정산 화면 막대 — 「게임쇼 정산」으로 돌아가는 단추는 폰에서도 글자가 보인다(.gs-back 은 폰에서 그림만 남긴다) */
.gs-back.gs-back-sheet { min-width: 0; padding: 0 var(--s3); }
/* 게임쇼 정산 끝 */

/* ── 사이트 소개 — FABLE888 이름의 뜻 (2026-11-28 사장님 · pages-market.js FABLE · P.about) ──
   소개 화면(.abt): 큰 이름 → 한 줄 소개 → 글자마다 한 줄([글자 | 뜻 | 갈 곳]) → 조용한 안내 한 줄.
   ★ 첫 화면의 다섯 칸 구역은 같은 날 걷었다(사장님 「하단에 사이트소개 카테고리 만들어서 거기에만」) — 바닥글 「사이트 소개」 묶음에서 이 화면으로 온다.
   색은 토큰만 쓴다(글자는 --accent) · 움직임은 공용 .reveal(움직임 줄이기에서 멈춘다) 하나뿐 · 네온 · 번쩍임 없음. */
.abt { padding-bottom: var(--s6); }
.abt-hero { padding: var(--s8) 0 var(--s6); text-align: center; }
.abt-logo { margin: 0; }
.abt-logo img { width: min(440px, 86%); height: auto; margin: 0 auto; }
.abt-lead { max-width: 640px; margin: var(--s5) auto 0; font-size: var(--f-md); line-height: 1.7; color: var(--text-2); }
.abt-list { display: grid; gap: var(--s3); max-width: var(--w-read); margin: var(--s6) auto 0; }
.abt-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.abt-l { font-size: calc(var(--f-4xl) * 1.25); line-height: 1; font-weight: 900; letter-spacing: -.02em; text-align: center; white-space: nowrap; color: var(--accent); }
.abt-bd { min-width: 0; }
.abt-en { font-size: var(--f-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.abt-ko { margin: 2px 0 6px; font-size: var(--f-lg); font-weight: 800; }
.abt-tx { margin: 0; font-size: var(--f-sm); line-height: 1.65; color: var(--text-2); }
.abt-note { max-width: var(--w-read); margin: var(--s5) auto 0; padding-left: var(--s3); border-left: 3px solid var(--line-3); font-size: var(--f-xs); line-height: 1.7; color: var(--text-3); }
.abt-go { white-space: nowrap; }
@media (max-width: 640px) {
  .abt-hero { padding: var(--s6) 0 var(--s5); }
  .abt-row { grid-template-columns: 72px minmax(0, 1fr); padding: var(--s4); gap: var(--s3); }
  .abt-l { font-size: var(--f-3xl); }
  .abt-go { grid-column: 1 / -1; justify-content: center; min-height: var(--ctl-h); }
}
/* 사이트 소개 끝 */
