/* ============================================================================
   v3 사진 피드 (feed-v3.js) — 다크+골드, 이모지 금지, 50대 가독성
   ========================================================================== */
/* 하단 여백 = 탭바 높이 + 돌출 FAB + 아이폰 안전영역 → 마지막 좋아요·댓글 줄이 탭바/올리기 버튼에 안 가림 */
.screen#screen-feed { padding: 0 0 calc(94px + env(safe-area-inset-bottom)); }

/* ── 릴스(세로 전체화면) ───────────────────────────────────────────────── */
#screen-reels { padding: 0; }
.reels-wrap { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; background: #000; -ms-overflow-style: none; scrollbar-width: none; }
.reels-wrap::-webkit-scrollbar { display: none; }
.reels-loading { height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; }
.reels-empty { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.reels-empty h3 { margin: 14px 0 8px; }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.reel-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.reel-video, .reel-yt-poster { width: 100%; height: 100%; object-fit: cover; }
/* 영상은 절대 자르지 않음: 상태바 아래~탭바(가운데 버튼 돌출 포함) 위 영역에 비율 유지(contain). 남는 여백은 흐린 포스터 배경 */
.reel-media.reel-vid { top: env(safe-area-inset-top, 0px); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); background: transparent; } /* 탭바 88px(가운데 버튼 돌출 포함) + 4px */
.reel-vid .reel-video { object-fit: contain; background: transparent; }
.reel-bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(24px) brightness(.45) saturate(1.1); pointer-events: none; }
.reel-yt-frame { position: absolute; inset: 0; }
.reel-yt-frame iframe { width: 100%; height: 100%; border: 0; }
.reel-yt { background: #141414; }
.reel-yt .reel-yt-poster { object-fit: cover; }
.reel-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 2; }
.reel-yt-play .licon { width: 34px; height: 34px; color: #fff; fill: #fff; }
.reel-yt-frame:has(iframe) ~ .reel-yt-play, .reel-yt-frame:has(iframe) ~ .reel-yt-poster, .reel-yt-frame:has(iframe) ~ .reel-yt-tag { display: none; }
.reel-yt-tag { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; font-size: 12px; border-radius: 999px; padding: 4px 11px; z-index: 2; }
.reel-photos { }
.reel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.reel-photo.on { opacity: 1; animation: reelKenburns 3.4s ease-out forwards; }
@keyframes reelKenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-2.5%,-2%); } }
.reel-vid-err { position: absolute; inset: 0; z-index: 2; }
.reel-vid-err img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.5); }
.reel-vid-err .rve-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.reel-vid-err .rve-msg .licon { width: 36px; height: 36px; color: var(--accent); }
.reel-mutehint { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; font-size: 12.5px; border-radius: 999px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 5px; }
.reel-mutehint .licon { width: 14px; height: 14px; }
.reel-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.reel-rail { position: absolute; right: 8px; bottom: 120px; display: flex; flex-direction: column; gap: 18px; z-index: 3; }
.reel-act { background: none; border: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.reel-act .licon { width: 30px; height: 30px; }
.reel-cnt { font-size: 12px; font-weight: 600; }
.reel-act.like.on .licon { fill: var(--accent); color: var(--accent); }
.reel-act.save.on .licon { fill: var(--accent); color: var(--accent); }
.reel-bottom { position: absolute; left: 14px; right: 70px; bottom: 86px; z-index: 3; color: #fff; }
.reel-author { display: inline-flex; align-items: center; gap: 9px; background: none; border: none; color: #fff; padding: 0; cursor: pointer; margin-bottom: 8px; }
.reel-author .fav { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,.7); }
.reel-nick { font-weight: 700; font-size: 15px; }
.reel-official { font-size: 11px; font-weight: 800; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.reel-cap { font-size: 14px; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.reel-car { background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* 릴스 댓글 바텀시트 — 뒤 영상이 계속 재생되도록 상단은 투명, 60% 높이 */
.reel-csheet-bg { background: rgba(0,0,0,.2) !important; align-items: flex-end; }
#fabSheet { z-index: 120; } /* 신고/메뉴 시트는 댓글 시트 위에 */
.reel-csheet { height: 60vh; height: 60dvh; display: flex; flex-direction: column; padding-bottom: 0; color: var(--text); }
.rcs-head { font-weight: 700; font-size: 15px; text-align: center; padding: 2px 0 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.rcs-list { flex: 1; overflow-y: auto; padding: 6px 0 8px; }
.rcs-loading { display: flex; justify-content: center; padding: 30px; }
.rcs-empty { padding: 30px 14px; text-align: center; }
.rcs-bar { display: flex; gap: 8px; align-items: center; padding: 10px 2px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.rcs-bar input { flex: 1; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); padding: 11px 14px; font-size: 14.5px; }
.rcs-bar button { background: var(--accent); border: none; border-radius: 50%; width: 40px; height: 40px; color: #201a08; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* 영상 올리기 */
.video-preview { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; max-height: 420px; margin: 0 auto; }
.video-preview video { width: 100%; height: 100%; object-fit: contain; }
.video-dur { position: absolute; bottom: 8px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 9px; }
.vplate-preview { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; max-height: 360px; margin: 0 auto 14px; }
.vplate-preview video { width: 100%; height: 100%; object-fit: contain; }
.vplate-check { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.vplate-check input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--accent); }
.feed-chips { position: sticky; top: 0; z-index: 20; background: rgba(15,17,20,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 8px 12px 10px; }
.feed-top { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.feed-logo { font-weight: 800; letter-spacing: 1.5px; color: var(--accent); font-size: 20px; }
.feed-top-acts { display: flex; gap: 2px; }
.feed-dm { background: none; border: none; color: var(--text); padding: 6px; cursor: pointer; }
.feed-guest { display: block; width: 100%; margin: 6px 0 2px; background: var(--accent); color: #201a08; font-weight: 700; border: none; border-radius: 10px; padding: 10px; font-size: 14px; cursor: pointer; }
.chips-row { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fchip.on { background: var(--accent); color: #201a08; border-color: var(--accent); }
.licon.xs { width: 13px; height: 13px; vertical-align: -1px; }

.feed-reco { padding: 12px 0 4px; border-bottom: 1px solid var(--line); }
.reco-t { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 14px 8px; }
.reco-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 14px 6px; }
.reco-row::-webkit-scrollbar { display: none; }
.reco-card { flex: 0 0 auto; width: 92px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--text); }
.reco-nick { font-size: 12.5px; font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-badge { font-size: 11px; color: var(--muted); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fcard { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.fcard.sk .fc-img { height: 360px; background: var(--card-2); }
.fcard.sk .fc-head, .fcard.sk .fc-acts { height: 48px; background: var(--card); }
.fc-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.fc-author { display: flex; align-items: center; gap: 10px; background: none; border: none; color: var(--text); padding: 0; cursor: pointer; flex: 1; min-width: 0; }
.fav { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--card-2); display: inline-flex; align-items: center; justify-content: center; }
.fav-lg { width: 72px; height: 72px; }
.fav-ini { font-weight: 800; color: var(--accent); font-size: 16px; }
.fav-lg.fav-ini { font-size: 30px; }
.fav-off { color: var(--accent); }
.fc-amain { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.fc-nick { font-weight: 700; font-size: 14.5px; }
.fc-sub { color: var(--muted); font-size: 12px; }
.fc-type { font-size: 11.5px; font-weight: 700; color: var(--accent); border: 1px solid rgba(201,169,97,.4); border-radius: 999px; padding: 2px 8px; }
.fc-more { background: none; border: none; color: var(--muted); padding: 6px; cursor: pointer; }
.vbadge { font-size: 10.5px; font-weight: 800; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.vbadge.sm { font-size: 10px; padding: 0 5px; }

.fc-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; position: relative; -ms-overflow-style: none; scrollbar-width: none; }
.fc-carousel::-webkit-scrollbar { display: none; }
.fc-slide { width: 100%; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/5; object-fit: cover; background: #0a0a0a; }
.fc-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.fc-dot.on { background: #fff; }
.fc-count { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
/* 피드 영상 카드 — 4:5 세로로 잘라 보여 줌(릴스는 9:16 전체). 두 번 탭 확대 방지(touch-action) */
/* 피드 영상: 원래 비율 그대로(--ar, 포스터·영상 크기로 설정), 세로 영상은 화면 높이 75%까지. 자르지 않음(contain)+좌우 흐린 배경 */
.fc-vid { position: relative; width: 100%; aspect-ratio: var(--ar, 9/16); max-height: 75vh; max-height: min(75svh, calc(100svh - var(--feed-sticky, 0px) - 96px - env(safe-area-inset-bottom, 0px))); background: #000; overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.fc-video, .fc-ytposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.fc-vid.fc-yt { aspect-ratio: 4/5; max-height: none; }
.fc-vid .fc-video { object-fit: contain; background: transparent; }
.fc-vbg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.1); pointer-events: none; }
.fc-vbadge { position: absolute; top: 10px; right: 12px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); pointer-events: none; z-index: 2; }
.fc-vbadge .licon { width: 22px; height: 22px; }
.fc-vbtn { position: absolute; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; z-index: 3; }
.fc-vbtn .licon { width: 17px; height: 17px; color: #fff; }
.fc-vsound { right: 12px; }
.fc-vfull { left: 12px; }
.fc-vsound .fv-on { display: none; }
.fc-vid.sound-on .fc-vsound .fv-on { display: block; }
.fc-vid.sound-on .fc-vsound .fv-off { display: none; }
.fc-verr { position: absolute; inset: 0; z-index: 2; background: #000; }
.fc-verr img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.45); }
.fc-verr-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; width: 80%; }
.fc-verr-msg .licon { width: 34px; height: 34px; color: var(--accent); }
.fc-vid.broken .fc-vsound { display: none; }
.fc-ytplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.fc-ytplay .licon { width: 30px; height: 30px; color: #fff; fill: #fff; }
.fc-yttag { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; border-radius: 999px; padding: 4px 11px; z-index: 2; pointer-events: none; }

.fc-car { margin: 10px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fcc-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 11px 13px; cursor: pointer; text-align: left; color: var(--text); }
.fcc-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcc-caret { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .18s; }
.fc-car.collapsed .fcc-caret { transform: rotate(-90deg); }
.fcc-detail { padding: 0 13px 11px; }
.fc-car.collapsed .fcc-detail { display: none; }
.fcc-top { font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.fcc-row { display: flex; justify-content: space-between; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.fcc-row.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.fc-saving { margin: 10px 12px 0; background: rgba(201,169,97,.12); color: var(--accent); border: 1px solid rgba(201,169,97,.3); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.fc-acts { display: flex; align-items: center; gap: 4px; padding: 8px 8px 2px; }
.fc-act { background: none; border: none; color: var(--text); padding: 7px; cursor: pointer; }
.fc-act .licon { width: 25px; height: 25px; }
.fc-act.save { margin-left: auto; }
.fc-act.like.on .licon { fill: var(--accent); color: var(--accent); }
.fc-act.save.on .licon { fill: var(--accent); color: var(--accent); }
.fc-likes { padding: 2px 14px; font-weight: 700; font-size: 14px; }
.fc-cap { padding: 4px 14px; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.fc-cap b { font-weight: 700; }
.fc-comments { background: none; border: none; color: var(--muted); padding: 4px 14px 6px; font-size: 13.5px; cursor: pointer; }

.feed-empty { padding: 60px 20px; text-align: center; }
.feed-sentinel { height: 40px; }
.feed-empty .fe-ic, .reels-soon-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.feed-empty .fe-ic .licon, .reels-soon-ic .licon { width: 28px; height: 28px; color: var(--accent); }

.reels-soon { text-align: center; padding: 90px 24px; }
.reels-soon h2 { font-size: 20px; margin: 0 0 8px; }

#screen-postdetail { padding-bottom: 70px; }
.pd-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; background: rgba(15,17,20,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 10px; }
.pd-title { font-weight: 700; font-size: 16px; }
.icon-btn { background: none; border: none; color: var(--text); padding: 7px; cursor: pointer; }
.pd-comments { padding: 6px 0 20px; }
.pd-nocom { padding: 24px 14px; text-align: center; }
.pd-c { display: flex; gap: 10px; padding: 9px 14px; }
.pd-c.reply { padding-left: 46px; }
.pd-cmain { flex: 1; min-width: 0; }
.pd-cnick { font-size: 13px; font-weight: 700; }
.pd-ctime { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 4px; }
.pd-ctext { font-size: 14.5px; margin-top: 2px; word-break: break-word; }
.pd-cact { display: flex; gap: 14px; margin-top: 4px; }
.pd-cact button { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 0; cursor: pointer; }
.pd-commentbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pd-commentbar input { flex: 1; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); padding: 11px 14px; font-size: 14.5px; }
.pd-commentbar button { background: var(--accent); border: none; border-radius: 50%; width: 40px; height: 40px; color: #201a08; cursor: pointer; display: flex; align-items: center; justify-content: center; }

#screen-profile { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.pr-head { display: flex; align-items: center; gap: 22px; padding: 16px 18px 8px; }
.pr-stats { display: flex; flex: 1; justify-content: space-around; }
.pr-stat { text-align: center; }
.pr-stat b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pr-stat span { font-size: 12.5px; color: var(--muted); }
.pr-meta { padding: 2px 18px 8px; }
.pr-nick { font-weight: 700; font-size: 15px; }
.pr-region { font-size: 13px; margin-top: 2px; }
.pr-bio { font-size: 14px; margin-top: 4px; }
.pr-actions { display: flex; gap: 8px; padding: 4px 16px 14px; }
.pr-actions .btn { flex: 1; }
.pr-garage { padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.pr-sec-t { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 8px; }
.pg-car { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.pg-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.pg-ic .licon { color: var(--accent); }
.pg-name { font-weight: 600; font-size: 14.5px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pgrid-cell { position: relative; aspect-ratio: 1; background: var(--card-2); border: none; padding: 0; cursor: pointer; overflow: hidden; }
.pgrid-cell img { width: 100%; height: 100%; object-fit: cover; }
.pgrid-text { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--muted); }
.pgrid-multi { position: absolute; top: 5px; right: 5px; color: #fff; }
.pr-account { margin-top: 14px; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pr-logout { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pr-logout .licon { width: 18px; height: 18px; }
.pr-delete { background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; padding: 8px; cursor: pointer; }

#screen-upload { padding: 0; }
.up-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 12px; }
.up-title { font-weight: 700; font-size: 16px; }
.up-next { background: none; border: none; color: var(--accent); font-weight: 800; font-size: 15px; cursor: pointer; padding: 6px 8px; }
.up-next:disabled { color: var(--muted); }
.up-body { padding: 16px; }
.up-bottom { position: sticky; bottom: 0; background: var(--bg); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.up-bottom .btn { width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pg-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card-2); }
.pg-cell img { width: 100%; height: 100%; object-fit: cover; }
.pg-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 12px; }
.photo-add { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; color: var(--muted); font-weight: 600; cursor: pointer; }

.plate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 6px; }
.plate-none { font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 4px; cursor: pointer; flex: 0 0 auto; }
.plate-none input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent); }
.plate-head > span { font-variant-numeric: tabular-nums; color: var(--muted); }
.plate-stage { display: flex; justify-content: center; background: #000; padding: 6px; }
#plateCanvas { max-width: 100%; touch-action: none; }
.plate-tools { display: flex; gap: 8px; padding: 10px 14px; }
.plate-tools .btn.sm { flex: 1; }
.plate-hint { padding: 0 14px; }
.plate-nav { display: flex; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
.plate-nav .btn { flex: 1; }

.car-pick { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; color: var(--text); cursor: pointer; }
.car-pick.on { border-color: var(--accent); background: rgba(201,169,97,.08); }
.cp-name { font-weight: 600; font-size: 15px; }
.type-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pick { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.type-pick.on { border-color: var(--accent); background: rgba(201,169,97,.08); color: var(--accent); }
.type-pick .licon { width: 18px; height: 18px; }
.cap-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.cap-thumbs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.cap-input { width: 100%; min-height: 140px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 14px; font-size: 15px; line-height: 1.5; resize: vertical; }

.us-title { margin: 2px 0 12px; }
.us-list { display: flex; flex-direction: column; gap: 4px; }
.us-item { display: flex; align-items: center; gap: 14px; background: none; border: none; border-radius: 12px; padding: 13px 10px; cursor: pointer; text-align: left; color: var(--text); }
.us-item:active { background: var(--card-2); }
.us-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--card-2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.us-ic .licon { color: var(--accent); }
.us-main { display: flex; flex-direction: column; }
.us-main b { font-size: 15px; color: var(--text); }
.us-main .muted { color: var(--muted); }
.sheet-menu { display: flex; flex-direction: column; gap: 2px; }
.smenu { background: none; border: none; color: var(--text); padding: 15px 10px; text-align: left; font-size: 15px; border-radius: 10px; cursor: pointer; }
.smenu:active { background: var(--card-2); }
.smenu.danger { color: var(--danger); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-pick { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px; color: var(--text); cursor: pointer; font-weight: 600; }
.ef-l { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.ef-i { width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 15px; }

/* ── v3 3단계: 클럽 · 랭킹 · 배지 · 자동 제안 ───────────────────────────── */
#screen-club { padding: 0 0 calc(94px + env(safe-area-inset-bottom)); overflow-y: auto; }
.club-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 12px 14px calc(12px + env(safe-area-inset-top)); padding-top: calc(12px + env(safe-area-inset-top)); background: var(--bg); border-bottom: 1px solid var(--line); }
.club-title { flex: 1; font-size: 20px; font-weight: 800; margin: 0; color: var(--text); }
.club-sec { padding: 14px; border-bottom: 8px solid var(--line); }
.club-sec:last-child { border-bottom: none; }
.club-sec-h { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.club-sec-h .licon { width: 18px; height: 18px; color: var(--accent); }
.rk-block { margin-bottom: 14px; }
.rk-cap { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.rk-row { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; text-align: left; cursor: pointer; }
.rk-no { flex: 0 0 auto; width: 22px; text-align: center; font-weight: 800; color: var(--accent); font-size: 15px; }
.rk-no.sm { width: 18px; font-size: 13px; }
.rk-th { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--card-2); }
.rk-th-txt { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.rk-th-txt .licon { width: 18px; height: 18px; }
.rk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rk-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.rk-sub { font-size: 12px; color: var(--muted); }
.rk-owners { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.rk-owners::-webkit-scrollbar { display: none; }
.rk-owner { flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; }
.rk-oname { font-size: 12px; font-weight: 600; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--text); }
.rk-obadge { font-size: 11px; font-weight: 800; color: var(--accent); }
.rk-club { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 6px; cursor: pointer; }
.rk-cbrand { flex: 1; font-size: 15px; font-weight: 700; text-align: left; color: var(--text); }
.rk-cnt { font-size: 12px; color: var(--muted); }
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.club-card { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: left; cursor: pointer; }
.club-card.mine { border-color: var(--accent); }
.club-mine-tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; color: #201a08; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.club-b { font-size: 17px; font-weight: 800; color: var(--text); }
.club-m { font-size: 12px; color: var(--muted); }
/* 클럽 검색 + 그 밖의 브랜드 한 줄 목록 */
.club-search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.club-search > .licon { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.club-search input { width: 100%; height: 44px; padding: 0 40px 0 38px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 15px; -webkit-appearance: none; appearance: none; }
.club-search input::-webkit-search-cancel-button { display: none; }
.club-search input:focus { outline: none; border-color: var(--accent); }
.club-search-x { position: absolute; right: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--muted); cursor: pointer; }
.club-search-x .licon { width: 16px; height: 16px; }
.club-rest-h { margin: 18px 2px 6px; font-weight: 700; }
.club-rows { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.club-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px 10px 14px; background: none; border: none; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--text); }
.club-row:last-child { border-bottom: none; }
.club-row-b { flex: 0 0 auto; font-size: 15px; font-weight: 700; }
.club-row-m { flex: 1; min-width: 0; font-size: 12.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-row > .licon { flex: 0 0 auto; width: 16px; height: 16px; color: var(--muted); }
.club-stat { display: flex; justify-content: space-around; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.club-stat-i { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.club-stat-i b { font-size: 19px; font-weight: 800; }
.club-stat-i span { font-size: 12px; color: var(--muted); }
.club-mchips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; -ms-overflow-style: none; scrollbar-width: none; }
.club-mchips::-webkit-scrollbar { display: none; }
.club-mchip { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.club-mchip.on { background: var(--accent); color: #201a08; border-color: var(--accent); font-weight: 700; }
#clubFeed { padding: 4px 0; }
#clubMoreWrap { padding: 0 14px; }

/* 프로필 배지 행 */
.pr-badges { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; -ms-overflow-style: none; scrollbar-width: none; }
.pr-badges::-webkit-scrollbar { display: none; }
.pr-badge { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; background: var(--card); border: 1.5px solid var(--accent); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.pr-badge .licon { width: 15px; height: 15px; color: var(--accent); }

/* 자동 포스트 제안 카드(내 차 탭 상단) */
.sugg-card { display: flex; align-items: stretch; gap: 11px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 12px 12px 12px 14px; margin: 2px 0 14px; }
.sugg-ic { flex: 0 0 auto; align-self: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(201,169,97,0.14); display: flex; align-items: center; justify-content: center; }
.sugg-ic .licon { width: 19px; height: 19px; color: var(--accent); }
.sugg-main { flex: 1; min-width: 0; align-self: center; }
.sugg-t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sugg-s { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
/* 닫기(X)는 우상단, 올리기는 그 아래 — 겹치지 않게 세로 배치 */
.sugg-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.sugg-go { width: auto; padding: 7px 14px; font-size: 13px; }
.sugg-x { width: 44px; height: 44px; margin: -10px -8px -2px 0; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; }
.sugg-x .licon { width: 18px; height: 18px; }

/* ── 내 차 자랑 카드(공유 이미지) 전체화면 오버레이 ───────────────────────── */
.bc-overlay { position: fixed; inset: 0; z-index: 1200; background: var(--bg); display: flex; flex-direction: column; }
.bc-overlay.hidden { display: none; }
.bc-head { position: relative; display: flex; align-items: center; justify-content: center; padding: calc(14px + env(safe-area-inset-top)) 14px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.bc-title { font-size: 17px; font-weight: 800; }
.bc-x { position: absolute; right: 10px; top: calc(10px + env(safe-area-inset-top)); background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }
.bc-x .licon { width: 22px; height: 22px; }
.bc-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 10px; }
.bc-preview { display: flex; justify-content: center; margin-bottom: 14px; }
.bc-preview canvas { max-height: 46vh; max-width: 100%; width: auto; border-radius: 14px; border: 1px solid var(--line); background: #0F1114; }
.bc-ratio { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.bc-rbtn { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text); cursor: pointer; }
.bc-rbtn.on { background: var(--accent); color: #201a08; border-color: var(--accent); font-weight: 700; }
.bc-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; -ms-overflow-style: none; scrollbar-width: none; }
.bc-photos::-webkit-scrollbar { display: none; }
.bc-photo { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--card-2); cursor: pointer; padding: 0; }
.bc-photo.on { border-color: var(--accent); }
.bc-photo img { width: 100%; height: 100%; object-fit: cover; }
.bc-nophoto { padding: 16px 2px; }
.bc-opts { display: flex; flex-direction: column; gap: 2px; }
.bc-opt { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.bc-opt input:disabled { opacity: 0.4; cursor: not-allowed; }
.bc-note { padding: 12px 2px 0; }
.bc-foot { flex: 0 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.bc-lp { padding: 20px 16px; text-align: center; overflow-y: auto; }
.bc-lp-t { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.bc-lp-img { max-width: 80%; max-height: 70vh; border-radius: 14px; }

/* ── v3-polish: 내 차 도우미(판독·질문) 그리드 ───────────────────────────── */
.helper-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 14px; }
.helper-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 4px 11px; color: var(--text); cursor: pointer; }
.helper-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.helper-ic .licon { width: 20px; height: 20px; color: var(--accent); }
.helper-t { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; }

/* ── v3-polish: 내 차 정보(헤이딜러형 한 장) ─────────────────────────────── */
#carInfoCard { margin-bottom: 14px; }
.ci-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ci-name { font-size: 20px; font-weight: 800; color: var(--text); }
/* 번호판 — 본인 화면에서만 노출(공개 화면 미노출) */
.ci-plate { display: inline-block; background: #fff; color: #111; font-weight: 800; font-size: 20px; letter-spacing: 2px; border: 2px solid #1a1a1a; border-radius: 8px; padding: 7px 16px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ci-group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; overflow: hidden; }
.ci-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--text); font-size: 15px; }
.ci-group .ci-row:last-child { border-bottom: none; }
button.ci-row.act { cursor: pointer; }
button.ci-row.act:active { background: var(--card-2); }
.ci-k { flex: 0 0 38%; color: var(--muted); font-size: 14px; }
.ci-v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ci-hint { font-size: 11.5px; font-weight: 600; color: var(--accent); background: rgba(201,169,97,0.12); border-radius: 6px; padding: 1px 7px; }
.ci-c { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
.ci-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ci-tool { display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 2px; color: var(--text); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ci-tool .licon { width: 19px; height: 19px; color: var(--accent); }
.ci-foot { margin-top: 10px; }
.ci-cta { background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 14px; margin-top: 12px; }
.ci-cta-t { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.ci-cta-t .licon { width: 18px; height: 18px; color: var(--accent); }

/* ── v3 정리 수정: 묶음 제목 · 헤더 · 한 줄 제안 · 피드 차카드 한 줄 ───────── */
#ciHeader { margin-bottom: 12px; }
#ciHeader .ci-name { margin-bottom: 8px; }
.ci-gtitle { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 14px 2px 6px; }
.ci-nowrap { white-space: nowrap; }
.ci-group { margin-top: 0; }
/* 누를 수 있는 줄도 같은 얇은 구분선만 — 화살표 + 골드 꼬리표로만 구분(UA 버튼 테두리는 전역 reset) */
button.ci-row { font: inherit; }
/* 피드 차 카드: 상세 없을 때 한 줄(화살표 없음) */
.fcc-plain { padding: 11px 13px; }
.fcc-plain .fcc-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
/* 자동 포스트 제안 — 한 줄 바 */
.sugg-bar { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 8px 10px 8px 12px; margin: 2px 0 12px; }
.sugg-bar .sugg-ic { flex: 0 0 auto; display: flex; align-items: center; }
.sugg-bar .sugg-ic .licon { width: 17px; height: 17px; color: var(--accent); }
.sugg-bar .sugg-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-bar .sugg-go { flex: 0 0 auto; width: auto; padding: 6px 13px; font-size: 13px; }
.sugg-bar .sugg-x { flex: 0 0 auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.sugg-bar .sugg-x .licon { width: 17px; height: 17px; }
/* OCC 공식 글(블로그 카드) — 피드 캡션 + 글 전문 화면. 50대 가독성: 본문 17px·줄간격 1.75 */
.fc-art .fc-art-t { display: block; font-size: 16px; line-height: 1.45; margin-bottom: 4px; }
.fc-art-s { margin: 4px 0 2px; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.fc-art-s li { margin: 2px 0; }
.fc-art-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; padding: 4px 0; background: none; border: none; color: var(--accent); font-size: 14.5px; font-weight: 700; cursor: pointer; }
.fc-art-more .licon { width: 15px; height: 15px; }
.art-full { padding: 6px 16px 4px; }
.art-kicker { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.art-title { font-size: 22px; line-height: 1.4; font-weight: 800; color: var(--text); margin: 0 0 6px; word-break: keep-all; }
.art-date { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.art-card { display: block; width: 100%; border-radius: 12px; margin: 4px 0 16px; }
.art-body { font-size: 17px; line-height: 1.75; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.art-body h2 { font-size: 19px; line-height: 1.45; margin: 24px 0 8px; color: var(--text); padding-left: 10px; border-left: 4px solid var(--accent); }
.art-body h3 { font-size: 17.5px; margin: 18px 0 6px; }
.art-body p { margin: 0 0 14px; white-space: pre-line; }
.art-body ul, .art-body ol { padding-left: 20px; margin: 0 0 14px; }
.art-body li { margin: 4px 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; display: block; overflow-x: auto; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; min-width: 84px; }
.art-body th { background: var(--card); font-weight: 700; }
.art-body a { color: var(--accent); word-break: break-all; }
.art-guide { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 10px; padding: 13px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 16px; font-weight: 700; text-decoration: none; }
.art-guide .licon { width: 16px; height: 16px; }
.art-note { font-size: 13px; color: var(--muted); margin: 6px 0 4px; }

/* 공식 계정 프로필: 단순 소개 화면 */
.pr-off { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 32px; gap: 10px; }
.pr-off-name { font-size: 21px; font-weight: 800; margin-top: 6px; }
.pr-off-sub { font-size: 15px; }
.pr-off-intro { margin: 10px 0 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; width: 100%; max-width: 420px; }
.pr-off-intro p { margin: 0 0 8px; font-size: 16.5px; line-height: 1.65; }
.pr-off-intro p:last-child { margin-bottom: 0; }
.pr-off-count { font-size: 15px; margin-bottom: 6px; }
.pr-off .btn { min-width: 200px; }

/* ── 클럽 디자인 v2(2026-11-16): 사진이 먼저, 글자는 적게 · 테두리 없음(배경 밝기 차이와 사진으로 구분) ── */
#screen-club .club-head { border-bottom: none; }
#screen-club .club-sec { padding: 18px 14px 6px; border-bottom: none; }
#screen-club .club-sec-h { font-size: 17px; margin-bottom: 10px; }
.club-cnt { font-size: 13px; font-weight: 600; color: var(--muted); }
.club-empty-t { padding: 6px 2px 10px; }
/* 공통 커버 레이어: 그라데이션 → (사진) → 아래로 진해지는 어둠 막 */
.cv-bg, .cv-img, .cv-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-img { object-fit: cover; }
.cv-shade { background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.72) 100%); }
.cv-shade.ph { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.82) 100%); }
/* 내 클럽 카드(가로 전체, 약 180px) */
.myclub { position: relative; display: block; width: calc(100% - 28px); height: 180px; margin: 4px 14px 2px; border: none; border-radius: 16px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; color: #fff; background: var(--card); }
.myclub-body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.myclub-b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.myclub-b.sm { font-size: 20px; }
.myclub-m { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.myclub-tag, .ccard-tag, .ccover-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11.5px; font-weight: 800; color: #201a08; background: var(--accent); border-radius: 999px; padding: 3px 9px; }
.myclub-empty { cursor: default; }
.myclub-cta { align-self: flex-start; margin-top: 8px; }
/* 이번 주 — 가로 스크롤 카드 */
.hr-block { margin-bottom: 14px; }
.hr-cap { font-size: 13px; font-weight: 700; color: var(--muted); margin: 2px 0 8px; }
.hr-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x proximity; }
.hr-row::-webkit-scrollbar { display: none; }
.hc { position: relative; flex: 0 0 auto; border: none; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; scroll-snap-align: start; background: var(--card); color: var(--text); }
.hc-post { width: 128px; height: 160px; }
.hc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-txt { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px 12px 34px; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; word-break: keep-all; background: var(--card-2); color: var(--text); overflow: hidden; }
.hc-like { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 9px 3px 7px; }
.hc-like .licon { width: 13px; height: 13px; fill: #fff; color: #fff; }
.hc-owner { width: 112px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hc-owner .fav { width: 56px; height: 56px; }
.hc-oname { max-width: 100%; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.hc-ocar { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-club { width: 128px; height: 84px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 10px 12px; color: #fff; }
.hc-cb { font-size: 16px; font-weight: 800; color: #fff; }
.hc-cn { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); }
/* 브랜드 클럽 — 인기 10개 2열 사진 카드(약 120px) */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ccard { position: relative; height: 120px; border: none; border-radius: 14px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; color: #fff; background: var(--card); }
.ccard-body { position: absolute; left: 12px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.ccard-b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.ccard-m { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); text-shadow: 0 1px 5px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-tag { top: 8px; left: 8px; font-size: 10.5px; padding: 2px 8px; }
/* 다른 브랜드(접힘) */
.club-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; margin: 12px 0 4px; border: none; border-radius: 12px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; }
.club-more .licon { width: 17px; height: 17px; color: var(--muted); transition: transform .18s; }
.club-more.open .licon { transform: rotate(180deg); }
.club-rest { padding-top: 8px; }
#screen-club .club-search input { border: none; background: var(--card); }
#screen-club .club-search input:focus { outline: 2px solid rgba(var(--accent-rgb), .55); }
#screen-club .club-rows { border: none; background: var(--card); }
#screen-club .club-row { border-bottom: 1px solid rgba(255,255,255,.04); }
.club-row-dot { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; }
#screen-club .club-row-m { color: var(--muted); }
/* 브랜드 클럽 안 — 커버 */
.ccover { position: relative; height: 230px; overflow: hidden; color: #fff; background: var(--card); }
.ccover-back { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ccover-back .licon { width: 20px; height: 20px; color: #fff; }
.ccover-tag { top: calc(20px + env(safe-area-inset-top)); left: auto; right: 14px; }
.ccover-body { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; }
.ccover-b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.ccover-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ccover-stat b { font-size: 16px; font-weight: 800; color: #fff; margin-right: 2px; }
#screen-club .club-mchips { padding: 12px 14px; }
#screen-club .club-mchip { border: none; background: var(--card); }
#screen-club .club-mchip.on { background: var(--accent); color: #201a08; }
.club-mchip .mc-n { color: var(--muted); font-weight: 600; }
.club-mchip.on .mc-n { color: rgba(32,26,8,.7); }
/* 빈 피드·피드 끝 안내 — 릴스 바로가기 */
.feed-empty.fe-end { padding: 40px 20px 56px; border-top: 1px solid var(--line); margin-top: 8px; }
.fe-reels { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px auto 0; background: none; border: 0; color: var(--accent); font-size: 15px; font-weight: 600; padding: 10px 12px; cursor: pointer; }
.fe-reels .licon { width: 16px; height: 16px; }
/* 수입차 가이드 목록 */
.gd-wrap { padding: 4px 16px 120px; }
.gd-lead { font-size: 14px; margin: 6px 0 14px; }
.gd-lbl { font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.gd-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gd-chips::-webkit-scrollbar { display: none; }
.gd-chips .fchip { flex: 0 0 auto; }
.gd-count { margin: 14px 0 6px; }
.gd-list { display: flex; flex-direction: column; }
.gd-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 2px; color: var(--text); cursor: pointer; width: 100%; font: inherit; }
.gd-k { font-size: 13px; color: var(--accent); }
.gd-t { font-size: 16px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.gd-d { font-size: 13px; color: var(--muted); }

/* ── 내 차 헤더(2026-11-16): 차 이름 왼쪽(+여러 대면 전환) · '차량 추가' 오른쪽 위 항상 ── */
.ci-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ci-headrow .ci-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ci-switch { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px 0 10px; border: none; border-radius: 999px; background: var(--card-2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.ci-switch .licon { width: 15px; height: 15px; color: var(--muted); }
.ci-addveh { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ci-addveh .licon { width: 16px; height: 16px; color: var(--text); }
.ci-empty { background: var(--card); border-radius: 14px; padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.ci-empty-t { font-size: 18px; font-weight: 800; color: var(--text); }
.ci-empty-s { font-size: 14px; color: var(--muted); line-height: 1.55; word-break: keep-all; }
.ci-empty .btn { margin-top: 8px; }
#screen-garage.no-veh #ciStatus, #screen-garage.no-veh #garageSuggest, #screen-garage.no-veh .nav-delveh,
#screen-garage.no-veh .mc-card:not([data-menu="more"]) { display: none !important; }
#screen-garage.no-veh .mc-grid { grid-template-columns: 1fr; }
.nav-delveh .nav-t { color: var(--danger); }

/* 클럽 브랜드 로고(흰색·작게·오른쪽 위) — 오너 사진 배경이어도 로고는 작게 유지 */
.clogo { position: absolute; z-index: 2; top: 12px; right: 12px; width: 28px; height: 28px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); opacity: .95; }
.clogo.sm { top: 9px; right: 10px; width: 22px; height: 22px; }
.ccard .clogo { top: 10px; right: 10px; width: 26px; height: 26px; }
.clogo.in { position: static; display: inline-block; vertical-align: -4px; width: 30px; height: 30px; margin-right: 10px; }

/* ── 내 차 두 단계(2026-11-16): 첫 화면 = 차 카드·상태 3칸·제안 한 줄·큰 메뉴 4개 ── */
.gh-wrap { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); margin-bottom: 10px; }
.gh-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.gh-track::-webkit-scrollbar { display: none; }
.gh-slide { position: relative; flex: 0 0 100%; height: 188px; scroll-snap-align: start; color: #fff; }
.gh-bg, .gh-img, .gh-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.gh-img { object-fit: cover; }
.gh-shade { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.75) 100%); }
.gh-shade.ph { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.40) 50%, rgba(0,0,0,.80) 100%); }
.gh-body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gh-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gh-plate { display: inline-block; background: #fff; color: #111; font-weight: 800; font-size: 16px; letter-spacing: 1.5px; border: 2px solid #1a1a1a; border-radius: 7px; padding: 4px 12px; }
.gh-acts { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 8px; }
.gh-act { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gh-act .licon { width: 20px; height: 20px; color: #fff; }
.gh-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gh-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.gh-dot.on { background: #fff; }
.ci-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cs-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 76px; padding: 11px 12px; border: none; border-radius: 14px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.cs-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cs-v { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.cs-v small { font-size: 12px; font-weight: 700; margin-left: 2px; color: var(--muted); }
.cs-s { font-size: 12px; color: var(--muted); }
.cs-cell.warn .cs-v { color: var(--accent); }
.cs-cell.cta .cs-v { color: var(--accent); font-size: 16px; }
#garageSuggest:not(.hidden) { margin-bottom: 10px; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 14px; border: none; border-radius: 14px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.mc-card > .licon { width: 22px; height: 22px; color: var(--text); margin-bottom: 4px; }
.mc-t { font-size: 16px; font-weight: 800; color: var(--text); }
.mc-s { font-size: 12.5px; color: var(--muted); line-height: 1.35; word-break: keep-all; }
/* 두 번째 화면: 메뉴별 목록 */
.mv-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 0 10px; background: var(--bg); }
.mv-back { width: 40px; height: 40px; border-radius: 50%; border: none; background: none; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mv-back .licon { width: 22px; height: 22px; }
.mv-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--text); }
.mv-hint { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.mv-panel.hidden { display: none; }
#carMenuView .ci-foot { margin: 14px 2px 8px; }
