/* VITRINE — 어두운 진열실 톤. 금색은 강조 한 곳에만 쓴다. */
:root {
  --bg: #0b0a09;
  --bg2: #141210;
  --fg: #f3eee6;
  --sub: #9a9289;
  --line: rgba(243, 238, 230, .09);
  --soft: #191714;
  --gold: #c9a96e;
  --gold-2: #e3cc9c;
  --accent: #c9a96e;
  --buy: #f3eee6;
  --buy-fg: #0b0a09;
  --glass: rgba(11, 10, 9, .72);
  --ok: #8fbf8a;
  --warn: #d9a75a;
  --serif: 'Cormorant Garamond', 'Nanum Myeongjo', serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f2ea; --bg2: #efe9df; --fg: #1a1714; --sub: #7a7168; --line: rgba(26, 23, 20, .1); --soft: #ebe5da;
  --gold: #9c7a3c; --gold-2: #b8955a; --accent: #9c7a3c; --buy: #1a1714; --buy-fg: #f6f2ea; --glass: rgba(246, 242, 234, .78);
  --ok: #3f7a3a; --warn: #a06a1a; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f6f2ea; --bg2: #efe9df; --fg: #1a1714; --sub: #7a7168; --line: rgba(26, 23, 20, .1); --soft: #ebe5da;
    --gold: #9c7a3c; --gold-2: #b8955a; --accent: #9c7a3c; --buy: #1a1714; --buy-fg: #f6f2ea; --glass: rgba(246, 242, 234, .78);
    --ok: #3f7a3a; --warn: #a06a1a; color-scheme: light;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: Pretendard, -apple-system, system-ui, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: -0.1px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 2px; width: 100%; outline: none; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--gold); }
textarea { border: 1px solid var(--line); padding: 12px; border-radius: 4px; }
select option, select optgroup { background: var(--bg2); color: var(--fg); }
input::placeholder, textarea::placeholder { color: var(--sub); opacity: .7; }
svg { display: block; }
.serif { font-family: var(--serif); }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: 6px; text-transform: uppercase; }
.top-actions { display: flex; gap: 16px; }
.icon-btn svg, .tabbar svg { width: 23px; height: 23px; stroke-width: 1.4; }
#view { padding-bottom: 76px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 60px; display: flex; justify-content: space-around; align-items: center; background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { padding: 10px; opacity: .45; transition: opacity .2s; position: relative; }
.tabbar a.on { opacity: 1; }
.tabbar a.on::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }

/* 스토리 = 쇼핑몰 */
.stories { display: flex; gap: 16px; overflow-x: auto; padding: 14px 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 64px; text-align: center; font-size: 11px; color: var(--sub); }
.story .ring { width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--gold), var(--gold-2), #7a6440, var(--gold)); }
.story .ring.seen { background: var(--line); }
.story .av { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; background-color: var(--bg2); color: var(--fg); font-family: var(--serif); font-weight: 600; font-size: 15px; }
.story span { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 게시물 */
.post { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2) !important; color: var(--gold); border: 1px solid rgba(201, 169, 110, .45); font-family: var(--serif); font-weight: 600; font-size: 15px; flex: 0 0 auto; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b { font-weight: 600; }
.post-head .who small { display: block; color: var(--sub); font-size: 11.5px; letter-spacing: .2px; }
.badge { font-size: 10.5px; font-weight: 500; letter-spacing: 1px; color: var(--sub); padding: 4px 9px; border: 1px solid var(--line); border-radius: 2px; white-space: nowrap; background: none !important; }
.media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg2); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; text-align: center; color: #f3eee6; padding: 28px; position: relative; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mute { position: absolute; right: 12px; top: 12px; padding: 6px 11px; border-radius: 99px; background: rgba(11, 10, 9, .55); backdrop-filter: blur(10px); color: #f3eee6; font-size: 11.5px; font-weight: 500; z-index: 2; }
.slide .ph-name { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; word-break: keep-all; }
.slide .ph-sub { margin-top: 10px; font-size: 11px; letter-spacing: 2px; opacity: .7; }
.price-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(8, 7, 6, .82)); color: #f3eee6; font-weight: 500; font-size: 17px; letter-spacing: .3px; display: flex; align-items: baseline; gap: 8px; pointer-events: none; }
.price-tag s { opacity: .55; font-weight: 400; font-size: 12.5px; }
.price-tag em { font-style: normal; color: var(--gold-2); font-size: 12.5px; font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 5px; padding-top: 10px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--gold); }
.pname { margin: 0; padding: 14px 16px 0; font-weight: 600; font-size: 15.5px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel .info .rname { font-weight: 600; font-size: 16px; margin: 4px 0 2px; }
.buy-bar { display: flex; gap: 8px; padding: 12px 16px 0; }
.buy { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 2px; background: var(--buy); color: var(--buy-fg); font-weight: 600; letter-spacing: .3px; white-space: nowrap; transition: opacity .2s; }
.buy:active { opacity: .8; }
.buy svg { width: 17px; height: 17px; flex: 0 0 auto; }
.buy small { font-weight: 400; opacity: .65; }
.more-shops { white-space: nowrap; height: 46px; padding: 0 16px; border-radius: 2px; border: 1px solid var(--line); font-weight: 500; }
.actions { display: flex; align-items: center; gap: 16px; padding: 12px 16px 4px; }
.actions .sp { flex: 1; }
.actions svg { width: 24px; height: 24px; stroke-width: 1.4; }
.actions .liked svg { fill: var(--gold); stroke: var(--gold); }
.actions .saved svg { fill: currentColor; }
.likes { padding: 2px 16px 0; font-weight: 600; font-size: 13px; }
.caption { padding: 5px 16px 0; line-height: 1.6; word-break: keep-all; color: var(--fg); opacity: .92; }
.caption b { font-weight: 600; margin-right: 5px; }
.caption .tag { color: var(--gold); }
.notice { margin: 8px 16px 0; font-size: 11px; color: var(--sub); line-height: 1.5; }
.cmt-link { display: block; padding: 5px 16px 0; color: var(--sub); }
.time { padding: 6px 16px 0; font-size: 10.5px; letter-spacing: 1px; color: var(--sub); text-transform: uppercase; }

/* 탐색 */
.search-wrap { padding: 12px 16px 0; }
.search-wrap input { border: 1px solid var(--line); border-radius: 2px; padding: 11px 14px; background: var(--bg2); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); font-weight: 500; font-size: 12.5px; color: var(--sub); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.cell { position: relative; aspect-ratio: 4/5; overflow: hidden; display: grid; place-items: center; color: #f3eee6; text-align: center; padding: 8px; font-family: var(--serif); font-weight: 500; font-size: 15px; word-break: keep-all; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cell:hover img { transform: scale(1.04); }
.cell .vd { position: absolute; right: 7px; top: 7px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); }
.cell .vd svg { width: 18px; height: 18px; }
.cell .cp { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 6px; font-family: Pretendard, sans-serif; font-size: 11px; font-weight: 500; text-align: left; background: linear-gradient(transparent, rgba(8,7,6,.75)); }
.empty { padding: 70px 24px; text-align: center; color: var(--sub); line-height: 1.6; }
.empty .serif { display: block; font-size: 26px; color: var(--fg); margin-bottom: 8px; }

/* 릴스 */
.reels { height: calc(100vh - 116px); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; display: grid; place-items: center; color: #f3eee6; text-align: center; overflow: hidden; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8,7,6,.85)); pointer-events: none; }
.reel .bg { position: absolute; inset: 0; animation: drift 8s ease-in-out infinite alternate; background-size: 200% 200%; }
.reel video.bg { width: 100%; height: 100%; object-fit: cover; animation: none; }
.reel img.bg { width: 100%; height: 100%; object-fit: cover; animation: zoom 10s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.reel .center { position: relative; font-family: var(--serif); font-size: 34px; font-weight: 500; padding: 30px; word-break: keep-all; }
.reel .info { position: absolute; left: 16px; right: 72px; bottom: 20px; text-align: left; z-index: 2; }
.reel .info p { margin-top: 6px; line-height: 1.5; font-size: 13px; opacity: .9; }
.reel .info .buy { margin-top: 14px; background: #f3eee6; color: #0b0a09; }
.reel .side { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; gap: 20px; align-items: center; font-size: 11.5px; z-index: 2; }
.reel .side svg { width: 27px; height: 27px; margin: 0 auto 4px; stroke: #f3eee6; stroke-width: 1.4; }
.reel .side .liked svg { fill: var(--gold); stroke: var(--gold); }

/* 만들기 */
.form { padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.form h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: .3px; }
.form label { font-weight: 500; font-size: 12px; letter-spacing: .4px; color: var(--sub); display: flex; flex-direction: column; gap: 2px; }
.form label input, .form label select, .form label textarea { color: var(--fg); font-size: 15px; letter-spacing: 0; }
.form .hint { font-weight: 400; color: var(--sub); font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.form .row { display: flex; gap: 14px; }
.form .row > * { flex: 1; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: var(--fg) !important; }
.check input { width: 17px; height: 17px; accent-color: var(--gold); }
.drop { border: 1px solid var(--line); border-radius: 2px; padding: 34px 20px; text-align: center; color: var(--sub); cursor: pointer; background: var(--bg2); line-height: 1.7; transition: border-color .2s; }
.drop:hover { border-color: var(--gold); }
.drop b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--fg); margin-bottom: 2px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 68px; height: 85px; object-fit: cover; border-radius: 2px; }
.primary { height: 50px; border-radius: 2px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14.5px; letter-spacing: .6px; }
.primary:disabled { opacity: .5; }
.gold-btn { background: var(--gold); color: #0b0a09; }
.extra-link { display: flex; gap: 10px; }
.extra-link select { flex: 0 0 36%; }

/* 프로필 */
.profile-top { display: flex; align-items: center; gap: 24px; padding: 22px 18px 16px; }
.profile-top .avatar { width: 84px; height: 84px; font-size: 34px; }
.stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.stats span { font-size: 11px; color: var(--sub); letter-spacing: .3px; }
.bio { padding: 0 18px 14px; line-height: 1.6; }
.bio b { display: block; font-weight: 600; }
.profile-btns { display: flex; gap: 6px; padding: 0 18px 16px; }
.profile-btns a, .profile-btns button { flex: 1; text-align: center; padding: 9px; border-radius: 2px; border: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.ptabs { display: flex; border-top: 1px solid var(--line); }
.ptabs button { flex: 1; padding: 13px; font-weight: 500; font-size: 12.5px; letter-spacing: .5px; color: var(--sub); border-top: 1px solid transparent; margin-top: -1px; }
.ptabs button.on { color: var(--fg); border-top-color: var(--gold); }
.clicks { padding: 16px 18px; }
.clicks .bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.clicks .bar span { width: 96px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clicks .bar i { height: 6px; border-radius: 3px; background: var(--gold); display: block; }
.clicks .bar em { font-style: normal; color: var(--sub); font-size: 12px; }

/* 제휴 연결 · 설정 · 약관 공용 페이지 */
.partners, .page { padding: 20px 18px 30px; }
.partners h2, .page h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.partners .lead, .page .lead { color: var(--sub); margin: 8px 0 18px; line-height: 1.6; }
.pgroup { margin-bottom: 24px; }
.pgroup h3 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--sub); margin-bottom: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pcard .avatar { border-radius: 2px; }
.pcard .pinfo { flex: 1; min-width: 0; }
.pcard .pinfo b { display: block; font-weight: 500; }
.pcard .pinfo small { color: var(--sub); font-size: 12px; }
.pcard .pinfo small.warn, .pcard .pinfo .warn { color: var(--warn); }
.pcard a, .pcard button { font-size: 12px; font-weight: 500; padding: 7px 11px; border-radius: 2px; border: 1px solid var(--line); white-space: nowrap; }
.pcard .joined { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* 설정 */
.set-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.set-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.set-search { margin: 6px 18px 4px; }
.set-group { padding: 14px 0 6px; border-bottom: 6px solid var(--bg2); }
.set-group h3 { padding: 0 18px 6px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--sub); }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 18px; text-align: left; font-size: 14.5px; }
.set-row:active { background: var(--bg2); }
.set-row svg { width: 22px; height: 22px; stroke-width: 1.4; flex: 0 0 auto; }
.set-row .txt { flex: 1; min-width: 0; }
.set-row .txt small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.set-row .val { color: var(--sub); font-size: 13px; }
.set-row .chev { width: 16px; height: 16px; opacity: .4; }
.set-row.danger { color: #e0705f; }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.switch input:checked + i { background: var(--gold); border-color: var(--gold); }
.switch input:checked + i::after { transform: translateX(18px); background: #0b0a09; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.seg button { padding: 6px 11px; font-size: 12px; color: var(--sub); }
.seg button.on { background: var(--fg); color: var(--bg); }
.set-foot { padding: 22px 18px 10px; color: var(--sub); font-size: 11.5px; line-height: 1.7; text-align: center; }
.set-foot .logo { font-size: 17px; letter-spacing: 5px; color: var(--fg); }

/* 약관 */
.legal h2 { margin-bottom: 4px; }
.legal .meta { color: var(--sub); font-size: 12px; margin-bottom: 18px; }
.legal h3 { font-size: 14.5px; font-weight: 600; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.75; color: var(--fg); opacity: .88; font-size: 13.5px; word-break: keep-all; }
.legal ol, .legal ul { padding-left: 18px; margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; line-height: 1.55; }
.legal th { background: var(--bg2); font-weight: 600; }
.legal .todo { color: var(--warn); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 18px; font-size: 12px; color: var(--sub); }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }

/* 게시물 올리는 방법 */
.guide-hero { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.guide-hero img { width: 100%; height: 100%; object-fit: cover; }
.guide-step { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.guide-step .pic { aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: 2px; }
.guide-step .no { font-family: var(--serif); font-size: 13px; letter-spacing: 3px; color: var(--gold); }
.guide-step h3 { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.guide-step p { color: var(--sub); line-height: 1.6; font-size: 13px; word-break: keep-all; }
.guide-step p b { color: var(--fg); font-weight: 600; }
.guide-tip { margin: 18px; padding: 14px 16px; border: 1px solid rgba(201,169,110,.35); border-radius: 2px; line-height: 1.65; font-size: 13px; color: var(--sub); }
.guide-tip b { color: var(--gold); font-weight: 600; }
.guide-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(201,169,110,.35); border-radius: 2px; background: var(--bg2); }
.guide-card .pic { width: 54px; height: 54px; flex: 0 0 auto; background-size: cover; background-position: center; border-radius: 2px; }
.guide-card > a:nth-child(2) { flex: 1; }
.guide-card div { flex: 1; font-size: 13px; line-height: 1.5; color: var(--sub); }
.guide-card b { display: block; color: var(--fg); font-weight: 600; font-size: 14px; }
.guide-card .x { color: var(--sub); font-size: 18px; padding: 4px; }

/* 시트 · 알림 */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.sheet.hidden { display: none; }
.sheet .panel { width: 100%; max-width: 480px; max-height: 78vh; overflow-y: auto; background: var(--bg2); border-radius: 14px 14px 0 0; padding: 8px 18px 26px; border-top: 1px solid var(--line); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 14px; }
.sheet h3 { text-align: center; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.cmt { display: flex; gap: 10px; padding: 9px 0; line-height: 1.5; }
.cmt .avatar { width: 28px; height: 28px; font-size: 12px; }
.cmt-form { display: flex; gap: 8px; margin-top: 10px; }
.cmt-form button { color: var(--gold); font-weight: 600; padding: 0 6px; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.shop-row b { flex: 1; font-weight: 500; }
.shop-row .price { font-weight: 600; }
.act-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.act-item svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 2px; font-weight: 500; z-index: 60; max-width: 90vw; text-align: center; }
.toast.hidden { display: none; }

/* 로그인 · 가입 — 진열실 사진 위에 */
.auth-wrap { position: relative; min-height: 100vh; margin-bottom: -76px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.auth-wrap > img { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 46%; object-fit: cover; object-position: center 35%; }
/* 사진은 위쪽에만, 입력 칸 뒤는 단색이 되게 */
.auth-wrap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8,7,6,0) 0%, rgba(8,7,6,.45) 24%, #0b0a09 44%); }
.auth { position: relative; padding: 0 26px 96px; max-width: 400px; width: 100%; margin: 0 auto; color: #f3eee6; --fg: #f3eee6; --sub: #a49b90; --line: rgba(243,238,230,.16); }
.auth-logo { display: block; color: inherit; text-align: center; font-family: var(--serif); font-size: 44px; font-weight: 500; letter-spacing: 12px; padding-left: 12px; }
.auth-lead { text-align: center; color: var(--sub); margin: -10px 0 6px; font-size: 12.5px; letter-spacing: 3px; }
.auth .primary { background: #f3eee6; color: #0b0a09; }
.or { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: 11px; letter-spacing: 1px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth .more-shops { width: 100%; color: #f3eee6; }
.link-btn { color: var(--sub); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch { text-align: center; color: var(--sub); margin-top: 4px; font-size: 13px; }
.auth-switch a { color: var(--gold-2); font-weight: 600; }
.auth-terms { text-align: center; color: var(--sub); font-size: 11.5px; line-height: 1.6; }
.auth-terms a { color: #f3eee6; text-decoration: underline; text-underline-offset: 3px; }
.danger { color: #e0705f; }
.post-head .icon-btn svg { width: 22px; height: 22px; }

/* 링크 자동 채우기 */
.link-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.lstate { font-size: 12px; line-height: 1.55; padding: 10px 12px; border-radius: 2px; background: var(--bg2); border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.lstate.ok { color: var(--ok); border-left-color: var(--ok); }
.lstate.warn { color: var(--warn); border-left-color: var(--warn); }
.lstate.wait { color: var(--sub); }
.lstate span { color: var(--fg); }
.form input.filled, .form select.filled { border-bottom-color: var(--ok); }
.cands { display: flex; flex-direction: column; gap: 6px; }
.cands:empty { display: none; }
.hint.ok { color: var(--ok); }
.cand { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 2px; background: var(--bg2); text-align: left; }
.cand img { width: 44px; height: 44px; border-radius: 2px; object-fit: cover; flex: 0 0 auto; }
.cand span { flex: 1; min-width: 0; font-size: 12px; }
.cand b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 500; }
.cand small { color: var(--sub); }
.cand em { font-style: normal; font-weight: 600; font-size: 13px; white-space: nowrap; }
.vthumb { position: relative; width: 120px; }
.vthumb video { width: 120px; height: 160px; object-fit: cover; border-radius: 2px; background: #000; }
.vthumb span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 2px; }
/* Cormorant 기본 숫자는 높낮이가 들쭉날쭉(1이 ı처럼 보임) → 가지런한 숫자로 */
.logo, .serif, .guide-step .no, .stats b, .form h2, .page h2, .set-head h2, .empty .serif, .auth-logo { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* 홈 카테고리 줄 · 관심 카테고리 고르기 */
.cat-bar { border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 15; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.cat-bar [data-interests] { color: var(--gold); border-color: rgba(201,169,110,.45); }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; border: 1px solid var(--line); border-radius: 2px; font-size: 12.5px; color: var(--sub); transition: all .15s; }
.pick-item .serif { font-size: 18px; color: var(--fg); }
.pick-item.on { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,.08); }

/* 구매자 · 셀러 */
.seller-mark { display: inline-block; margin-left: 6px; padding: 2px 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 1.5px; color: var(--gold); border: 1px solid rgba(201,169,110,.5); border-radius: 2px; vertical-align: 2px; }
.profile-btns .gold-line { border-color: rgba(201,169,110,.55); color: var(--gold); }
.seller-list p { padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.6; color: var(--sub); font-size: 13px; }
.seller-list b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.page .check a { color: var(--fg); }

/* 크리에이터 · 브랜드 */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.role-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; text-align: left; border: 1px solid var(--line); border-radius: 2px; color: var(--sub); }
.role-card .serif { font-size: 22px; color: var(--fg); }
.role-card b { color: var(--fg); font-weight: 600; font-size: 14px; }
.role-card small { font-size: 12px; line-height: 1.55; }
.role-card.on { border-color: var(--gold); background: rgba(201,169,110,.07); }
.role-card.on .serif { color: var(--gold); }
.seller-info { display: block; margin: 8px 16px 0; font-size: 11.5px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.brand-line { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.brand-line a { color: var(--gold); font-weight: 500; }
.brand-line button { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table th, .info-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 38%; color: var(--sub); font-weight: 500; }
.ad-mark { display: inline-block; padding: 0 5px; margin-right: 2px; font-size: 10px; font-weight: 600; color: var(--gold); border: 1px solid rgba(201,169,110,.5); border-radius: 2px; }

/* 협찬 */
.camps { display: flex; flex-direction: column; }
.camp { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.camp-img { aspect-ratio: 4/5; background: var(--bg2) center/cover; border-radius: 2px; }
.camp-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.camp-body small { color: var(--gold); font-size: 11.5px; letter-spacing: .3px; }
.camp-body b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.camp-reward { font-size: 13px; color: var(--fg); opacity: .85; }
.camp-meta { font-size: 11.5px; color: var(--sub); }
.camp-meta em { font-style: normal; color: var(--gold); }
.camp-hero { aspect-ratio: 16/11; background: var(--bg2) center/cover; }
.camp-brand { color: var(--gold); font-size: 12.5px; display: flex; gap: 10px; align-items: center; }
.camp-desc { margin-top: 16px; line-height: 1.75; white-space: pre-wrap; color: var(--fg); opacity: .88; font-size: 13.5px; }
.sub-h { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--sub); margin: 8px 0 6px; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-row small { color: var(--sub); font-size: 12px; line-height: 1.5; }
.app-row .chip { padding: 6px 11px; }
.app-row .val { color: var(--gold); font-size: 12px; }

/* 로그인 화면은 위쪽 바를 숨김 (로고가 두 번 나오지 않게) */
body.on-login .topbar { display: none; }
/* 탭을 누른 뒤 남는 네모 테두리 없애기 (키보드로 옮길 때만 보이게) */
.tabbar a:focus:not(:focus-visible), .icon-btn:focus:not(:focus-visible) { outline: none; }
.tabbar a { -webkit-tap-highlight-color: transparent; }
.auth-wrap > img { z-index: 0; }
.auth-wrap::before { z-index: 1; }
.auth-wrap .auth { z-index: 2; }
/* 상품 사진 스토리 */
.story .ring { position: relative; }
.story .av { background-size: cover !important; background-position: center !important; }
.story-vd { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--gold); }
.story-vd svg { width: 13px; height: 13px; }
/* 제휴 링크 안내 */
.laff-msg { font-size: 12px; line-height: 1.6; color: var(--sub); padding: 8px 10px; border-left: 2px solid var(--line); background: var(--bg2); }
.laff-msg.ok { color: var(--ok); border-left-color: var(--ok); }
.laff-msg.warn { color: var(--warn); border-left-color: var(--warn); }
.laff-msg b { color: var(--fg); font-weight: 600; }
.laff-msg a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
