/* Halo — 크림/차콜 기반의 절제된 빈티지 패션 검색 UI */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --sunk: #f1ece9;
  --ink: #252225;
  --ink-2: #474047;
  --muted: #716970;
  --line: #e8e0df;
  --line-strong: #d5c7ca;
  --accent: #965363;
  --accent-soft: #f4e6e9;
  --demo: #4b3f72;
  --demo-soft: #ece8f4;
  --sold: #8f897f;
  --danger: #a33a2c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(31 29 26 / .05), 0 8px 24px -12px rgb(31 29 26 / .18);
  --serif: "Instrument Serif", "Pretendard", Georgia, serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Hiragino Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191719; --surface: #242124; --sunk: #302a2e; --ink: #f4eef0; --ink-2: #dfd5da; --muted: #b3a5ae;
    --line: #3d343b; --line-strong: #584650; --accent: #e5a4b2; --accent-soft: #3a252e; --demo: #b6a8e6; --demo-soft: #2a2540;
    --sold: #8a847a; --danger: #e58b7d; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
  .tag-demo, .badge.demo, .st.demo { color: #171513 !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); letter-spacing: -0.005em; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: none; margin: 0 auto; padding-left: 32px; padding-right: 32px; } /* 화면 양옆 끝까지(2026-10-08 사용자 요청 "양옆 맞춤") */
.hidden { display: none !important; }
/* 휴대폰 허용 잠금(D-026): 잠금 해제 전에는 헤더와 PIN 입력만 보인다 */
body.lan-locked > :not(header):not(#lanLock):not(script) { display: none !important; }
body.lan-locked .hero, body.lan-locked .actions { display: none !important; }
.lan-lock { max-width: 420px !important; margin: 48px auto; text-align: center; }
.lan-lock h2 { margin: 0 0 8px; font-size: 20px; }
.lan-lock-form { display: flex; gap: 8px; margin-top: 18px; }
.lan-lock-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 16px; }
.lan-lock-form button { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 22px; font-weight: 600; cursor: pointer; }
.lan-lock-msg { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 버튼 ── */
.btn-quiet { white-space: nowrap; flex: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-quiet.small { padding: 5px 11px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 600; cursor: pointer; width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.btn-link:hover { color: var(--ink); }
.btn-icon { background: none; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.btn-icon:hover { background: var(--sunk); color: var(--ink); }
.pill { background: var(--accent); color: #fff; border-radius: 999px; min-width: 18px; padding: 0 6px; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }

/* ── 헤더 ── */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.logo .ring { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ink); position: relative; flex: none; }
.logo .ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.logo.small { font-size: 17px; gap: 6px; }
.logo.small .ring { width: 13px; height: 13px; border-width: 2px; }
.logo.small .ring::after { inset: 2.5px; }
.actions { display: flex; gap: 8px; }
.hero { padding-top: 26px; padding-bottom: 22px; }
.tagline { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; font-weight: 500; letter-spacing: -0.01em; }
.search { display: flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); } /* 헤더 오른쪽(알림 버튼) 끝까지 — 2026-10-08 사용자 요청 */
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; font-size: 16px; outline: none; }
.search button { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 24px; font-weight: 600; cursor: pointer; }
.search-hint { margin: 10px 4px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.search-hint strong { color: var(--ink); font-weight: 600; }
.search-hint .bh-word { color: var(--ink-2); }
/* 브랜드 팔로우(D-054) */
.bh-follow { margin-left: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.bh-follow[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* 알림 종류 표시(D-054) */
.alert-kind { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--line, #ece9e4); color: var(--ink); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.alert-kind.k-price_drop { background: #e7f4ea; color: #1d6b34; }
.alert-kind.k-sold { background: #252225; color: #fff; }
.country-bar { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.country-bar::-webkit-scrollbar { display: none; }
.cchip { flex: none; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.cchip:hover { border-color: var(--ink); }
.cchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cchip .n { color: var(--muted); margin-left: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cchip[aria-pressed="true"] .n { color: inherit; opacity: .7; }

/* ── DEMO 고지 ── */
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding-top: 12px; padding-bottom: 12px; background: var(--demo-soft); border: 1px solid color-mix(in srgb, var(--demo) 35%, transparent); border-radius: var(--radius); max-width: calc(1360px - 48px); }
.notice.hidden { display: none; }
.notice p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tag-demo { flex: none; background: var(--demo); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; margin-top: 1px; }
.live-count { white-space: nowrap; margin-right: 6px; font-weight: 600; }
.notice-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ── 레이아웃 ── */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.filters { align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
.filters-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.filters-head h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; flex: 1; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.fgroup h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.facet-list { list-style: none; margin: 0; padding: 0; max-height: 212px; overflow: auto; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; flex: none; }
.check .count { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.price-row { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.price-row input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.hint.error-text { color: var(--danger); margin: 0 0 10px; }
.sources-box summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.sources-box ul { list-style: none; padding: 0; margin: 10px 0; font-size: 12.5px; }
.sources-box li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.st { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); }
.st.demo { background: var(--demo); color: #fff; border-color: var(--demo); }
.st.live { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── 툴바·칩 ── */
.toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.summary { margin: 0; color: var(--muted); font-size: 14px; }
.summary b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
/* 추천순 기준(D-039): 정렬 옆 작은 "기준" 버튼 → 누르면 설명 */
.sort-info { position: relative; }
.sort-info > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--muted, #6f6a62); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 10px; min-height: 32px; display: inline-flex; align-items: center; }
.sort-info > summary::-webkit-details-marker { display: none; }
.sort-info[open] > summary { color: inherit; }
.sort-info > p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, calc(100vw - 32px)); margin: 0; padding: 12px 14px; font-size: 12px; line-height: 1.55; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.sort select { appearance: none; border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236f6a62' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 999px; padding: 7px 32px 7px 14px; font-size: 14px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips:empty { display: none; }
.chip { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px 4px 12px; cursor: pointer; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--ink); }
.chip .x { color: var(--muted); }
.chip.clear { border-style: dashed; color: var(--muted); background: transparent; }

/* ── 상품 그리드 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 28px 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .35s ease; }
.card:hover .media img { transform: scale(1.02); }
.card:hover .name { text-decoration: underline; text-underline-offset: 3px; }
/* 사진 없음: 실제 사진처럼 꾸미지 않고 상태를 그대로 보여준다 */
.noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--line-strong) 45%, transparent) 11px 12px); color: var(--muted); }
.noimg .ni-title { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--sunk); padding: 2px 8px; border-radius: 6px; }
.noimg .ni-sub { font-size: 11.5px; background: var(--sunk); padding: 1px 6px; border-radius: 4px; }
.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 5px; align-items: flex-start; pointer-events: none; z-index: 1; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.badge.demo { background: var(--demo); color: #fff; border-color: var(--demo); }
.badge.sold { background: var(--sold); color: #fff; border-color: var(--sold); }
.grade { margin-left: auto; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 13px; background: var(--surface); border: 1px solid var(--line-strong); }
.card.is-sold .media { opacity: .55; }
.info { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.brand { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; margin: 0; }
.name { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; font-weight: 400; }
.price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price strong { font-size: 16.5px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price span { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.specs { margin: 0; font-size: 12.5px; color: var(--muted); }
.seller { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; min-width: 0; }
.seller .cc { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .05em; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; color: var(--muted); }
.seller .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup { margin-left: auto; flex: none; color: var(--accent); font-size: 12px; }

/* 로딩 스켈레톤 */
.skel .media, .skel .line { background: linear-gradient(100deg, var(--sunk) 30%, color-mix(in srgb, var(--sunk) 55%, var(--surface)) 50%, var(--sunk) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s infinite linear; border-color: transparent; }
.skel .line { height: 11px; border-radius: 5px; margin: 3px 0; }
.skel .w60 { width: 60%; } .skel .w40 { width: 40%; } .skel .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel .media, .skel .line { animation: none; } .card:hover .media img { transform: none; } }

/* 빈 결과·오류 */
.state { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.state h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.state p { color: var(--muted); margin: 0 0 18px; }
.state .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.state.error h3 { color: var(--danger); }

.pager { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pager:empty { display: none; }
.pager button { min-width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0 12px; }
.pager button:hover { border-color: var(--ink); }
.pager button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── 푸터 ── */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; font-size: 13px; }
.foot p { margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.muted { color: var(--muted); }
.credits:empty { display: none; }
.credits a { color: var(--muted); }

/* ── 다이얼로그 ── */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); padding: 20px 22px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(23 21 19 / .45); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.save-row { display: flex; gap: 8px; }
.save-row input { flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.list { list-style: none; padding: 0; margin: 14px 0 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.list li .grow { flex: 1; min-width: 0; }
.list li a { text-decoration: none; font-weight: 500; }
.list li a:hover { text-decoration: underline; }
.list li.unread a { font-weight: 700; }
.list .muted { font-size: 12.5px; }

/* DEMO 이동 안내 페이지 */
.interstitial { max-width: 560px; margin: 64px auto; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.interstitial h1 { font-family: var(--serif); font-weight: 500; }
.interstitial .badge.demo { display: inline-block; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }

.mobile-only { display: none; }
.sheet-foot { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }

/* ── 모바일 ── */
@media (max-width: 860px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .notice { width: auto; margin-left: 16px; margin-right: 16px; padding-left: 14px; padding-right: 14px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .mobile-only { display: inline-flex; }
  .sheet-foot.mobile-only { display: block; }
  .bar { height: 56px; }
  .hero { padding-top: 10px; padding-bottom: 16px; }
  .tagline { font-size: 21px; margin-bottom: 12px; }
  .search input { padding: 9px 14px; }
  .search button { padding: 0 18px; }
  .actions .btn-quiet { padding: 6px 11px; font-size: 13px; }
  /* 필터: 하단 시트 */
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; z-index: 40; background: var(--bg); border-radius: 18px 18px 0 0; padding: 0 16px; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -12px 40px rgb(0 0 0 / .2); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { position: sticky; top: 0; background: var(--bg); padding-top: 14px; z-index: 1; }
  .sheet-backdrop { position: fixed; inset: 0; background: rgb(23 21 19 / .45); z-index: 39; }
  .toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; margin: 0 0 8px; }
  .summary { font-size: 13px; }
  .summary .muted { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .name { font-size: 13px; }
  .price strong { font-size: 15px; }
  .dup { display: none; }
}
@media (prefers-reduced-motion: reduce) { .filters { transition: none; } }

.brand-search { width: 100%; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; }
.facet-list li[hidden] { display: none; }

/* ── 상품 상세 (Gem 구조 참고, Halo 스타일) ── */
.pdp-top { display: flex; align-items: center; gap: 14px; height: 60px; }
.pdp-close { display: grid; place-items: center; text-decoration: none; font-size: 18px; color: var(--ink); }
.pdp-disclosure { margin-left: auto; font-size: 12px; color: var(--muted); }
.pdp-body .notice { margin-top: 4px; }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr); gap: 36px; padding-top: 20px; padding-bottom: 40px; align-items: start; }
.pdp-gallery { position: sticky; top: 16px; }
.pdp-stage { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 120px); width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.pdp-nav:hover { border-color: var(--ink); }
.pdp-nav.prev { left: 12px; } .pdp-nav.next { right: 12px; }
.pdp-nav[hidden] { display: none; }
.pdp-dots { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.pdp-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.pdp-dots span.on { background: var(--ink); }
.pdp-info { position: sticky; top: 16px; display: flex; flex-direction: column; min-height: min(calc(100vh - 120px), 760px); }
.pdp-badges { display: flex; gap: 6px; margin-bottom: 14px; }
.pdp-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.pdp-price { font-size: 28px; font-weight: 650; margin: 0 0 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pdp-price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.pdp-title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.35; margin: 4px 0 18px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #fff; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.spec dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.spec dd { margin: 0; font-size: 15px; }
.pdp-cta { margin-top: auto; padding-top: 22px; position: sticky; bottom: 0; background: var(--bg); padding-bottom: 8px; }
.pill-cta { display: flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650; font-size: 15px; padding: 0 22px; }
.pill-cta:hover { opacity: .9; }
.pill-cta.disabled { background: var(--sunk); color: var(--muted); border: 1px dashed var(--line-strong); cursor: not-allowed; font-weight: 500; font-size: 14px; }
.pdp-more { padding-top: 8px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.pdp-more h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 22px 0 6px; }
.pdp-more .hint { margin: 0 0 14px; }
.same-list { list-style: none; padding: 0; margin: 0; }
.same-list a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.same-list a:hover { background: var(--sunk); }
.sl-src { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.sl-meta { color: var(--muted); font-size: 13px; }
.sl-price { font-weight: 650; font-variant-numeric: tabular-nums; }
.cc { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .05em; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; color: var(--muted); }

/* ── 판매처에서 직접 검색 / 연결 현황 ── */
.direct { margin-top: 22px; padding-top: 4px; }
.direct-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.direct-head h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0; }
.direct .hint { margin: 6px 0 12px; }
.direct-countries { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.direct-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.dlink { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); }
.dlink:hover { border-color: var(--ink); }
.dlink.off { opacity: .55; pointer-events: none; border-style: dashed; }
.dl-name { font-weight: 600; font-size: 14px; }
.dl-meta { font-size: 12px; color: var(--muted); }
.conn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.conn-table th, .conn-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.conn-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st.wait { border-style: dashed; }
.st.block { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.st.link { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.conn-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 12px; font-size: 13px; }
dialog.wide { width: min(860px, calc(100vw - 24px)); max-height: 86vh; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 8px; padding-bottom: 96px; }
  .pdp-gallery, .pdp-info { position: static; min-height: 0; }
  .pdp-stage { max-height: none; }
  .pdp-nav { width: 38px; height: 38px; font-size: 22px; top: calc(50% - 19px); }
  .pdp-disclosure { display: none; }
  .pdp-price { font-size: 24px; }
  .pdp-title { font-size: 19px; }
  .pdp-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 20; }
  .pdp-cta .pdp-label { display: none; }
  .same-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .sl-meta { grid-column: 1 / -1; grid-row: 2; }
  .direct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conn-table .hide-sm { display: none; }
}
.tag-link { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--line-strong); color: var(--muted); }

/* DEMO 샘플 화면: 실매물이 없을 때 기본 접힘 — 판매처 직접 검색이 먼저 보이게 */
.sample-box { margin-top: 28px; }
.sample-box > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--demo) 45%, transparent); border-radius: var(--radius); background: var(--demo-soft); }
.sample-box > summary::-webkit-details-marker { display: none; }
.sample-box > summary::after { content: "펼치기 ▾"; margin-left: auto; font-size: 13px; color: var(--muted); }
.sample-box[open] > summary::after { content: "접기 ▴"; }
.sample-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.sample-box .layout { padding-left: 0; padding-right: 0; }
.conn-table th { white-space: nowrap; }
.conn-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.conn-totals > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.conn-totals b { font-size: 22px; font-variant-numeric: tabular-nums; }
.conn-totals span { font-size: 12px; color: var(--muted); }
.conn-totals .zero { border-color: var(--line-strong); border-style: dashed; }
.conn-h { font-size: 13px; letter-spacing: .04em; margin: 18px 0 4px; }
@media (max-width: 560px) { .conn-totals > div { padding: 8px; } .conn-totals b { font-size: 18px; } .conn-totals span { font-size: 11px; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.conn-table .st, .conn-table td.nw { white-space: nowrap; }

/* ── 개인 모드 실시간 검색 (로컬 전용, DEMO 와 분리) ── */
.personal { margin-top: 22px; padding-top: 4px; }
.personal .hint { margin: 6px 0 8px; }
.tag-live { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--bg); }
.badge.live { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.badge.reserved { background: var(--surface); color: var(--ink); }
.psite { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.psite-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; }
.psite-head h3 { margin: 0; font-size: 16px; }
.psite-head .muted { font-size: 12.5px; }
.psite .grid { gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.pfallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.pfallback .dlink .dl-meta { white-space: normal; }
.pfallback-title { margin: 22px 0 0; font-size: 14px; }

/* 개인 모드 실시간 결과: 샘플 화면과 같은 필터·정렬·목록 레이아웃 */
.personal .layout { padding-left: 0; padding-right: 0; }
.personal .layout[hidden] { display: none; }
.pfallback-box { margin-top: 8px; }
.pfallback-box > summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 8px 0; }
.pmore { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px 0 4px; font-size: 13.5px; color: var(--muted); }
.pmore:empty { display: none; }

/* 홈 브랜드 바로가기: 검색창 아래 한 줄(넘치면 가로 스크롤) */
/* 브랜드 목록 페이지(헤더 "브랜드" → #brands). 구성: 검색 · 알파벳 원형 버튼 · 글자별 4열 목록(영문 + 한글 읽기) */
.brands-btn svg { flex: none; }
.brands-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.brands-open .hero, body.brands-open > .notice, body.brands-open > .personal, body.brands-open > .direct,
body.brands-open > .sample-box, body.brands-open > .layout { display: none !important; }
.brands-page { padding-top: 18px; padding-bottom: 72px; }
.brands-page[hidden] { display: none; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.crumb-home { background: none; border: 0; padding: 0; font-size: inherit; text-decoration: underline; cursor: pointer; color: var(--ink-2); }
.brands-page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.01em; margin: 36px 0 40px; }
.brands-search { position: relative; max-width: none; }
.brands-search input { width: 100%; height: 64px; border: 0; border-radius: 999px; background: var(--sunk); padding: 0 64px 0 32px; font-size: 15px; }
.brands-search input::placeholder { color: var(--muted); }
.brands-search svg { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.brands-letters { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 56px; }
.brands-letters button { width: 54px; height: 54px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.brands-letters button.other { width: auto; padding: 0 26px; }
.brands-letters button:hover:not(:disabled) { border-color: var(--ink); }
.brands-letters button:disabled { opacity: .35; cursor: default; }
.brands-sec { margin-bottom: 44px; scroll-margin-top: 16px; }
.brands-sec h2 { display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-weight: 500; font-size: 26px; margin: 0 0 28px; }
.brands-sec h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.brands-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.brands-grid button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 6px; }
.brands-grid .en { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.brands-grid .ko { font-size: 12.5px; color: var(--muted); }
.brands-grid button:hover .en { text-decoration: underline; text-underline-offset: 3px; }
.brands-empty { color: var(--muted); }
.brands-empty button { margin-left: 8px; }
@media (max-width: 860px) {
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .brands-page h1 { margin: 24px 0 24px; }
  .brands-search input { height: 54px; padding-left: 22px; }
  .brands-letters { gap: 8px; margin: 22px 0 40px; }
  .brands-letters button { width: 44px; height: 44px; font-size: 14px; }
}
@media (max-width: 520px) {
  .bar { gap: 10px; }
  .bar .logo { font-size: 22px; }
  .actions { gap: 6px; }
  .actions .btn-quiet { padding: 6px 9px; }
  .brands-btn .lbl { display: none; }
}


/* 판매처 링크와 Halo 상품 반환 상태를 각각 표시한다. */
.direct-status { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.engine-filter, .engine-badge { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; padding: 5px 8px; }
.engine-filter { cursor: pointer; background: var(--surface); color: var(--ink); }
.engine-filter[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.engine-badge { align-self: flex-start; margin-bottom: 5px; }
.engine-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; font-size: 12.5px; color: var(--ink-2); }
.engine-legend div { display: flex; align-items: center; gap: 8px; }
.engine-legend dt, .engine-legend dd { margin: 0; }
.engine-legend .engine-badge { margin: 0; white-space: nowrap; }
.conn-table .engine-badge { margin: 0; white-space: nowrap; }
.engine-badge.candidate, .engine-filter.candidate { color: #775310; background: #fff3d4; border-color: #d9b35a; }
.engine-badge.working, .engine-filter.working { color: #235a3e; background: #e3f1e7; border-color: #81af90; }
.engine-badge.broken, .engine-filter.broken { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.badges-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 5px; }
.badges-row .engine-badge { margin-bottom: 0; }
.triage-badge { display: inline-block; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; padding: 4px 7px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.source-card .triage-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.conn-table .triage-badge { margin-left: 5px; }
.triage-badge.t-A { color: #235a3e; border-color: #81af90; }
.source-card { gap: 5px; }
.source-card .dl-name { text-decoration: none; line-height: 1.5; }
.source-card .dl-name:hover { text-decoration: underline; }
.source-card .disabled { color: var(--muted); pointer-events: none; }
.dl-reason { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
/* 해외 구매대행(WorldShopping) 표시 — 검색엔진 상태와 별개 */
.proxy-line { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.proxy-line.partner { color: var(--ink-2); }
.proxy-link { white-space: nowrap; }
.connection-action { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.connection-action summary { cursor: pointer; }
.connection-action p { margin: 6px 0; }
.connection-action dl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 8px; }
.connection-action dd { margin: 0; }
@media (max-width: 600px) {
  .direct-links .source-card:has(.connection-action[open]) { grid-column: 1 / -1; }
}
@media (prefers-color-scheme: dark) {
  .engine-badge.candidate, .engine-filter.candidate { color: #edcb83; background: #352d1c; }
  .engine-badge.working, .engine-filter.working { color: #a4d6b6; background: #203429; }
}
@media (max-width: 480px) { .direct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 실시간 결과: Gem 형식(2026-10-08 사용자 요청) — 사진 격자 + 사진 위 가격, 필터는 버튼으로 여는 서랍, 무한 스크롤 ── */
.personal .pview { display: block; padding-top: 8px; }
.pview .toolbar { position: sticky; top: 0; z-index: 6; background: var(--bg); padding: 10px 0; margin: 0 0 4px; }
.pview .toolbar .summary { color: var(--ink); font-size: 20px; }
.pview .toolbar .summary b { font-weight: 700; }
.pview .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } /* 사진 더 크게(16:48 사용자 요청) */
.pview .filters { position: fixed; top: 0; bottom: 0; left: 0; right: auto; align-self: stretch; justify-self: stretch; width: min(340px, 88vw); max-height: none; z-index: 40; background: var(--bg);
  padding: 0 18px 24px; overflow: auto; border-radius: 0 16px 16px 0; transform: translateX(-105%); visibility: hidden; transition: transform .25s ease; box-shadow: 12px 0 40px rgb(0 0 0 / .18); }
.pview .filters.open { transform: none; visibility: visible; }
.pview .filters-head { position: sticky; top: 0; background: var(--bg); padding-top: 16px; z-index: 1; }
.pview .sheet-backdrop { position: fixed; inset: 0; background: rgb(23 21 19 / .45); z-index: 39; }
.pview .filters .mobile-only { display: revert; }
.pview .sheet-foot { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 0; }
.gcard { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.gcard img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }
.gcard:hover img { transform: scale(1.03); }
.gcard .noimg { position: absolute; inset: 0; padding: 14px; }
.gcard .noimg .ni-title { font-weight: 500; font-size: 13px; line-height: 1.4; background: none; padding: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gprice { position: absolute; top: 8px; right: 8px; background: rgb(255 255 255 / .92); color: #252225; font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.gsold { position: absolute; top: 8px; left: 8px; background: var(--sold); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.gcard.is-sold img { opacity: .5; }
.ghover { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; display: flex; flex-direction: column; gap: 2px; color: #fff;
  background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0)); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.gcard:hover .ghover, .gcard:focus-visible .ghover { opacity: 1; }
.ghover .gt { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ghover .gs { font-size: 11px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pSentinel { height: 1px; }
@media (max-width: 860px) {
  .pview .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pview .toolbar .summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .pview .filters, .gcard img { transition: none; } }


/* 판매처 페이지(#marketplace, 상단 Marketplace): 홈에서는 숨기고, 열렸을 때는 이 영역만(2026-10-08 사용자 요청) */
body:not(.sources-open) > .direct { display: none !important; }
body.sources-open .hero, body.sources-open > .notice, body.sources-open > .personal, body.sources-open > .sample-box,
body.sources-open > .layout, body.sources-open > .brands-page { display: none !important; }
.direct .crumbs { margin-bottom: 10px; }
.direct-more { margin-top: 18px; }

/* 회원(로그인·회원가입) — 2026-10-08 */
.auth-btn.signed-in { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.auth-form { display: grid; gap: 12px; margin-top: 6px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.auth-form input { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px; }
.auth-form .btn-primary { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 11px 18px; font-weight: 600; cursor: pointer; }
.auth-form .btn-primary:disabled { opacity: .6; cursor: default; }
.auth-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: #b3261e; }
.auth-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.auth-form .btn-primary.danger { background: #b3261e; color: #fff; }
.auth-delete { margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-delete summary { cursor: pointer; }

/* 검색창 드롭다운(2026-10-08) */
.search { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; max-height: min(70vh, 720px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.12); padding: 18px 20px 10px; text-align: left; }
.sg-sec { margin-bottom: 16px; }
.sg-sec h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sg-sec h3 span, .sg-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.search .suggest .sg-sec h3 .btn-link { background: none; color: var(--muted); padding: 0; border-radius: 0; text-decoration: underline; margin-left: auto; font-size: 12px; }
.sg-note { margin: -2px 0 8px; }
.search .suggest .sg-item { display: flex; justify-content: flex-start; min-height: 0; box-shadow: none; letter-spacing: normal; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 6px; border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.search .suggest .sg-item:hover, .search .suggest .sg-item.active { background: var(--sunk); }
.sg-item b { font-weight: 700; }
.sg-rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 20px; }
.sg-num { width: 22px; flex: none; font-weight: 700; color: var(--muted); opacity: .6; }
.sg-num.top { color: var(--ink); opacity: 1; }
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.sg-brand span:last-child { display: grid; line-height: 1.3; }
.sg-brand b { font-weight: 600; }
.sg-brand small { font-size: 12.5px; color: var(--muted); }
.search .suggest .sg-mono { color: var(--ink); width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; background: var(--bg); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search .suggest .sg-chip { width: auto; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.sg-terms { list-style: none; margin: 0; padding: 0; }
.sg-terms svg { color: var(--muted); flex: none; }
.sg-terms .sg-item { font-weight: 400; }
@media (max-width: 640px) { .sg-grid, .sg-rank { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } .suggest { padding: 14px 12px 6px; } }

/* 상품 미리보기(2026-10-08, gem.app 참고). 2026-10-11 사용자 "미리보기를 gem.app 처럼": 화면 전체를 덮는 창, 왼쪽 둥근 사진 칸 + 오른쪽 좁은 정보 칸 */
dialog.pv { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) 300px; overflow: hidden; }
dialog.pv .pv-media { margin: 18px 0 18px 24px; border-radius: 14px; overflow: hidden; }
/* 사진은 창 안에 맞춘다(2026-10-11 사용자 "미리보기 창 안에 맞춰줘" — 세로로 긴 사진이 줄 높이를 늘려 아래가 잘리던 문제): 줄 높이를 창에 고정하고 사진은 칸 안에 비율 유지 */
dialog.pv { grid-template-rows: minmax(0, 1fr); }
dialog.pv .pv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
dialog.pv:not([open]) { display: none; }
dialog.pv::backdrop { background: rgb(20 16 18 / .55); }
.pv-close { position: absolute; top: 14px; left: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
.pv-media { position: relative; background: #f3f2f0; display: grid; place-items: center; min-height: 0; }
.pv-media img { width: 100%; height: 100%; object-fit: contain; }
.pv-media .noimg { width: 70%; aspect-ratio: 1; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); color: #222; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
.pv-nav.prev { left: 16px; } .pv-nav.next { right: 16px; }
.pv-info { padding: 56px 28px 28px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; justify-content: center; }
.pv-price { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.pv-orig { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.pv-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }
.pv-meta { margin: 8px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pv-meta div { min-width: 0; }
.pv-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.pv-meta dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.pv-go { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.pv-go:hover { opacity: .88; }
.pv-pos { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.pv-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.pv-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0; }
.pv-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #f3f2f0; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb.on { border-color: var(--ink); }
.pv-thumb:focus-visible { outline: 2px solid var(--accent, var(--ink)); outline-offset: 2px; }
@media (max-width: 760px) {
  /* 휴대폰(2026-10-10 사용자 제보 "미리보기 사진이 덮어서 내용 가림"): 사진 칸은 위 절반에 가두고(넘치는 부분 잘라 내지 않고 비율 맞춰 축소),
     아래 절반은 정보 칸이 자기 안에서 스크롤. 전에는 사진이 자기 칸보다 커져 가격·상품명 위를 덮었다 */
  dialog.pv { width: 100vw; height: 100dvh; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 50%) minmax(0, 1fr); }
  dialog.pv .pv-media { margin: 0; border-radius: 0; overflow: hidden; }
  .pv-media img { position: absolute; inset: 0; }
  .pv-info { padding: 18px 18px 24px; justify-content: flex-start; }
  .pv-nav { width: 40px; height: 40px; font-size: 26px; }
  .pv-thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
}

/* 찜(Save, 2026-10-09): 카드 ♡ · 미리보기 Save · 계정의 찜 목록 */
.gwrap { position: relative; min-width: 0; }
.gsave { position: absolute; top: 38px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .92); color: #252225; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.gwrap:hover .gsave, .gwrap:focus-within .gsave, .gsave.on, .gsave:focus-visible { opacity: 1; }
.gsave.on { color: #c2414b; }
@media (hover: none) { .gsave { opacity: 1; } }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pv-actions .pv-go { margin-top: 0; }
.pv-save { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.pv-save.on { color: #c2414b; border-color: #c2414b; }
.pv-share { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; }
.pv-share-note { margin: 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.acct-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-items li { display: flex; gap: 10px; align-items: center; }
.saved-items .si-img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 6px; background: var(--line); }

/* Account(마이페이지, #account, 2026-10-09): Brands·Marketplace 처럼 별도 화면. 탭 + 찜 그리드 + 목록 */
.account-page { padding-top: 18px; padding-bottom: 72px; }
.account-page[hidden] { display: none; }
body.account-open .hero, body.account-open > .notice, body.account-open > .personal, body.account-open > .direct,
body.account-open > .sample-box, body.account-open > .layout, body.account-open > .brands-page { display: none !important; }
.acct-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 32px 0 24px; }
.acct-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.01em; margin: 0; }
.acct-email { margin: 0; color: var(--muted); font-size: 14px; }
.acct-tabs { display: flex; gap: 4px 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.acct-tabs [role="tab"] { flex: none; background: none; border: 0; padding: 12px 2px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.acct-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.acct-tabs .count { font-size: 12px; color: var(--muted); font-weight: 500; }
.acct-note { margin: 0 0 16px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.acct-item { position: relative; min-width: 0; }
/* 찜 품절·예약중 표시(2026-10-11): 지우지 않고 배지 + 사진 흐리게 */
.acct-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 12px; font-weight: 700; }
.acct-badge.sold { background: #252225; color: #fff; }
.acct-item.sold .acct-img img { filter: grayscale(1); opacity: .55; }
.acct-item.sold .acct-meta b { text-decoration: line-through; color: var(--muted); }
.acct-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.acct-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-img .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.acct-heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92);
  color: #c2414b; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.acct-heart:hover { background: #fff; }
.acct-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; font-size: 13px; }
.acct-meta b { font-size: 15px; }
.acct-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.acct-empty { padding: 48px 0; text-align: center; }
.acct-empty p { margin: 6px 0; }
.acct-save { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 20px; }
.acct-save input { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font: inherit; }
.acct-save .hint { grid-column: 1 / -1; margin: 0; }
.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-list li { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.acct-list li.muted { justify-content: center; border: 0; padding: 40px 0; }
.acct-list a { font-weight: 600; text-decoration: none; color: inherit; }
.acct-list a:hover { text-decoration: underline; }
.acct-list .grow { flex: 1; min-width: 0; }
.acct-list.alerts .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: transparent; }
.acct-list.alerts li.unread .dot { background: var(--accent); }
.acct-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.acct-info { display: grid; gap: 0; margin: 0 0 20px; max-width: 560px; }
.acct-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.acct-info dt { color: var(--muted); }
.acct-info dd { margin: 0; font-weight: 600; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
@media (max-width: 640px) {
  .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .acct-save { grid-template-columns: 1fr; }
  .acct-head { margin: 20px 0 16px; }
}

/* Save search — 저장 검색별 새 매물 가로 목록(TheRealReal Obsessions 참고, 2026-10-09) */
.ss-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.ss-count { margin: 0; font-size: 14px; color: var(--muted); }
.ss-count b { color: var(--ink); }
.ss-addbtn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ss-addbtn[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.ss-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 12px 0 8px; }
.ss-add[hidden] { display: none; }
.ss-add input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font: inherit; }
.ss-add .hint { grid-column: 1 / -1; margin: 0; }
.ss { padding: 28px 0 20px; border-bottom: 8px solid var(--sunk, #f1edee); }
.ss-head { display: flex; align-items: center; gap: 14px; }
.ss-head h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-head h3 a { color: inherit; text-decoration: none; }
.ss-head h3 a:hover { text-decoration: underline; }
.ss-new { flex: none; background: #6f7a5e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .22em; padding: 6px 12px; }
.ss-go { margin-left: auto; flex: none; font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; padding: 0 6px; }
.ss-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 18px; font-size: 14px; }
.ss-tool { background: none; border: 0; padding: 2px 0; font: inherit; color: var(--ink); cursor: pointer; }
.ss-tool.link { text-decoration: underline; text-underline-offset: 3px; }
.ss-tool.on { font-weight: 700; }
.ss-tool.danger { color: var(--danger); text-decoration: underline; }
.ss-desc { font-size: 12.5px; }
.ss-editform[hidden] { display: none; }
.ss-edit-main label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ss-edit-main input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; }
.ss-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.ss-card { position: relative; scroll-snap-align: start; min-width: 0; }
.ss-img { position: relative; display: block; aspect-ratio: 3 / 4; background: #fff; border-radius: 6px; overflow: hidden; }
.ss-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-img .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.ss-img.is-sold img { opacity: .55; }
.ss-tag { position: absolute; left: 0; bottom: 0; background: #6f7a5e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .22em; padding: 6px 14px; }
.ss-sold { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 20px; text-shadow: 0 1px 6px rgb(0 0 0 / .45); }
.ss-heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.ss-heart.on { color: #c2414b; }
.ss-brand { margin: 12px 0 2px; font-size: 16px; font-weight: 700; }
.ss-title { margin: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-size { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ss-price { margin: 6px 0 0; font-size: 16px; font-weight: 700; }
.ss-card.skel .ss-img { background: linear-gradient(90deg, var(--line) 0%, var(--sunk, #f1edee) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.ss-none { padding: 24px 0; }
@media (max-width: 640px) {
  .ss-row { grid-auto-columns: 46%; gap: 12px; }
  .ss-add { grid-template-columns: 1fr; }
}

/* Save search Edit: 검색어 오른쪽 필터(2026-10-09) */
/* Save search Edit: 왼쪽 이름·검색어·정렬, 오른쪽 필터(2열 격자, 제목은 위에) — 2026-10-09 15:03 "필터랑 정렬 배치" */
.ss-editform { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px 28px; align-items: start; margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ss-edit-main { display: grid; gap: 12px; }
.ss-edit-main input, .ss-edit-main select { width: 100%; min-width: 0; }
.ss-edit-main select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; color: var(--ink); }
.ss-filters { border: 0; margin: 0; padding: 0; min-width: 0; }
.ss-filters legend { font-size: 12px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 10px; }
.ss-filters legend .muted { font-weight: 400; }
.ss-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ss-fgroup { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ss-fgroup.wide { grid-column: 1 / -1; }
.ss-flabel { font-size: 12px; color: var(--muted); }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-chip { position: relative; cursor: pointer; }
.ss-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ss-chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; background: var(--surface); }
.ss-chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ss-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-fgroup > input, .ss-prange input { width: 100%; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; font-size: 13px; }
.ss-prange { display: flex; align-items: center; gap: 6px; }
.ss-prange input { flex: 1; }
.ss-check { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; font-size: 13px; }
.ss-sites { border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; }
.ss-sites summary { cursor: pointer; min-height: 38px; display: flex; align-items: center; gap: 4px; font-size: 13px; }
.ss-sites[open] { max-height: 340px; overflow: auto; padding-bottom: 12px; }
.ss-site-group { display: grid; gap: 6px; margin-top: 10px; }
.ss-site-country { font-size: 11px; color: var(--muted); }
.ss-edit-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 4px; border-top: 1px solid var(--line); }
.ss-edit-actions .btn-primary { width: auto; flex: none; min-width: 120px; margin-top: 12px; }
.ss-edit-actions .btn-link { white-space: nowrap; margin-top: 12px; }
.ss-edit-actions .ss-delete { margin-left: auto; color: var(--danger); }
@media (max-width: 760px) { .ss-editform { grid-template-columns: 1fr; padding: 14px; } .ss-fgrid { grid-template-columns: 1fr; } }
.ss-add .btn-primary { width: auto; min-width: 100px; }

/* 성별 필터 아래 '성별 미표기' 설명(2026-10-09) */
.facet-note { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* 검색 결과는 상품 사진 아래에 이름·판매처를 항상 표시한다. */
#pResults .gwrap { display: flex; flex-direction: column; }
#pResults .gcard { aspect-ratio: auto; display: flex; flex-direction: column; flex: 1; }
#pResults .gcard > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
#pResults .gcard > .noimg { position: static; aspect-ratio: 1; }
#pResults .ghover { position: static; padding: 12px; color: var(--ink); background: var(--surface); opacity: 1; flex: 1; }
#pResults .ghover .gs { color: var(--ink-2); opacity: 1; }
#personalView { scroll-margin-top: 12px; }

/* 개인정보 처리방침(/privacy.html, D-044) — 읽기 쉬운 본문 폭(main 으로 써서 theme.css 의 .wrap 1600px 보다 우선) */
main.legal { max-width: 860px; margin-left: auto; margin-right: auto; padding-top: 8px; padding-bottom: 64px; line-height: 1.7; }
.legal h1 { font-size: 26px; margin: 12px 0 4px; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal-meta { color: var(--muted, #777); font-size: 13px; margin-top: 0; }
.legal ul { padding-left: 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line, rgba(127, 127, 127, 0.3)); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { font-weight: 600; white-space: nowrap; }
.legal-back { margin-top: 40px; }

/* Community(자유 게시판, #community, D-047, 2026-10-10): Account·Brands 처럼 별도 화면. 목록 → 글 → 댓글, 글쓰기 */
.community-page { padding-top: 18px; padding-bottom: 72px; max-width: 880px; }
.community-page[hidden] { display: none; }
body.community-open .hero, body.community-open > .notice, body.community-open > .personal, body.community-open > .direct,
body.community-open > .sample-box, body.community-open > .layout, body.community-open > .brands-page, body.community-open > .account-page { display: none !important; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 20px; }
.cm-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.01em; margin: 0; }
.cm-write[hidden] { display: none; }
.cm-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-search { position: relative; display: flex; align-items: center; }
.cm-search input { width: 220px; height: 34px; padding: 0 36px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.cm-search input:focus { outline: none; border-color: var(--ink); }
.cm-search button { position: absolute; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.cm-search button:hover { background: var(--sunk); }
.cm-qinfo { margin: 12px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.cm-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cm-tabs { border-bottom: 0; margin-bottom: 0; }
.cm-tabs button { flex: none; background: none; border: 0; padding: 12px 2px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cm-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cm-sort select { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 13px; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-list li { border-bottom: 1px solid var(--line); }
.cm-row { display: flex; gap: 16px; align-items: center; padding: 16px 2px; text-decoration: none; color: inherit; }
.cm-row:hover .cm-title { text-decoration: underline; }
.cm-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cm-cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.cm-title { font-size: 16px; overflow-wrap: anywhere; }
.cm-excerpt { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cm-meta { color: var(--muted); font-size: 12px; margin: 0; }
.cm-thumb { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: var(--radius-sm); background: var(--sunk); }
.cm-more { display: flex; margin: 20px auto 0; }
.cm-rules { margin-top: 28px; }
.cm-back { display: inline-block; margin-bottom: 16px; }
.cm-post { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cm-post-title { font-size: 22px; line-height: 1.35; margin: 6px 0 6px; overflow-wrap: anywhere; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.cm-body { margin: 20px 0; font-size: 15px; line-height: 1.7; }
.cm-images { display: grid; gap: 12px; margin: 0 0 20px; }
.cm-images img { width: auto; max-width: 100%; height: auto; max-height: 80vh; border-radius: var(--radius-sm); background: var(--sunk); }
.cm-actions { display: flex; align-items: center; gap: 16px; }
.cm-like.on { color: #c2414b; border-color: #c2414b; }
.cm-comments h3 { font-size: 15px; margin: 24px 0 8px; }
.cm-comments ul { list-style: none; margin: 0 0 16px; padding: 0; }
.cm-comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-comments li .cm-text { margin: 4px 0; font-size: 14px; }
.cm-cform { display: grid; gap: 8px; }
.cm-cform .btn-quiet { justify-self: end; }
.cm-cform textarea, .cm-wform textarea, .cm-wform select { padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.cm-wform { max-width: 680px; }
.cm-photos { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cm-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-previews:empty { display: none; }
.cm-prev { position: relative; width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; background: var(--sunk); }
.cm-prev img { width: 100%; height: 100%; object-fit: cover; }
.cm-prev .btn-icon { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: rgb(255 255 255 / .9); color: var(--ink); font-size: 12px; }
.cm-prev-wait { display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.cm-pick { justify-self: start; cursor: pointer; }
.cm-pick[hidden] { display: none; }
.cm-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-reasons label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
@media (max-width: 640px) {
  .cm-head { margin: 22px 0 14px; }
  .cm-bar { flex-direction: column; align-items: stretch; gap: 0; }
  .cm-tools { margin: 10px 0; }
  .cm-search { flex: 1; }
  .cm-search input { width: 100%; font-size: 16px; } /* 16px 미만이면 iPhone 이 확대함 */
  .cm-thumb { width: 72px; height: 72px; }
  .cm-post-title { font-size: 19px; }
}
.cm-hidden { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--sunk); color: var(--danger); font-weight: 600; }
