/* Urizib 앱 화면 전용 스타일 (색과 글꼴은 site.css의 토큰을 그대로 써요) */
.app-main { padding-block: 32px 80px; min-height: 70vh; }
.view h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.view h1.h3 { font-size: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; padding-block: 60px; }

.tabs { display: flex; gap: 4px; }
.tabs a { text-decoration: none; color: var(--muted); font-size: .92rem; padding: 6px 12px; border-radius: 999px; }
.tabs a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .tabs a { padding: 6px 8px; font-size: .85rem; } .logo { font-size: 1.15rem; } }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.box.narrow { max-width: 460px; margin: 24px auto 0; }
.stack { display: grid; gap: 14px; }
.note { background: var(--soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.row-links, .inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline input { flex: 1; min-width: 140px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.danger, .danger { color: var(--pass); }
.danger-btn { background: var(--pass); color: #fff; }
.consent a { color: var(--ink); }

.preview-slot { width: 100%; display: grid; justify-items: center; }
.save-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--bg) 92%, transparent); padding-block: 12px; }
.upload .link { font-size: .85rem; }
.trust-now { gap: 10px; }
.trust-now .soon { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-now .soon span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }

.account { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; max-width: 560px; }
.account h2 { font-size: 1.2rem; }
.account .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.confirm { background: var(--surface); border: 1px solid var(--pass); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; font-size: .92rem; }

/* 둘러보기 */
#view-explore .swipe-layout { align-items: start; }
#view-explore .where-to { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
@media (max-width: 860px) { #view-explore .where-to { position: static; } }

/* 매칭 목록 */
.match-list { display: grid; gap: 10px; max-width: 640px; }
.match-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; }
.match-item:hover { border-color: var(--accent); }
.match-item .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
.match-item b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.match-item small { color: var(--muted); }
.match-item .go { font-size: .85rem; color: var(--accent-deep); font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* 채팅 */
.chat { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.chat-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.chat-who .avatar { width: 40px; height: 40px; font-size: .95rem; }
.chat-who b { font-family: var(--font-display); font-size: 1.15rem; }
.chat-who small { color: var(--muted); display: block; line-height: 1.3; }
.chat-card { display: grid; justify-items: center; }
.chat-card .pcard { position: relative; inset: auto; width: 100%; max-width: 360px; cursor: default; }
.chat-tips { padding: 12px 16px; }
.chat-tips summary { font-size: .92rem; }
.checks.light { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.checks.light span { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.messages { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 320px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: var(--soft); align-self: flex-start; white-space: pre-wrap; word-break: break-word; }
.msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.msg time { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); margin-top: 2px; }
.day { align-self: center; font-size: .75rem; color: var(--muted); font-family: var(--font-mono); padding-block: 6px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 46px; max-height: 160px; resize: none; }
.report { display: grid; gap: 10px; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); background: var(--deep); color: var(--deep-fg); padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.box .btn { justify-self: start; }

/* 카카오 버튼 (카카오 디자인 가이드: 노란 배경 + 검은 글자) */
.btn.kakao { background: #FEE500; color: rgba(0, 0, 0, .85); width: 100%; }
.btn.small.kakao { width: auto; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 커뮤니티 게시판 */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.small-lead { font-size: .95rem; margin-top: 6px; }
.board-filters { display: grid; gap: 10px; margin-bottom: 16px; min-width: 0; }
.board-filters .pill-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.board-filters .pill { white-space: nowrap; flex: none; }
.cat-pill[aria-pressed="true"] { background: color-mix(in srgb, var(--chip, var(--accent)) 55%, var(--surface)); border-color: var(--chip, var(--accent)); color: var(--ink); }
#b-list { display: grid; }
.pad { padding: 18px; }
.b-row { display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.b-row:last-child { border-bottom: 0; }
.b-row:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.b-row.closed .b-title { color: var(--muted); }
.b-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.cat { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: color-mix(in srgb, var(--chip) 40%, var(--surface)); flex: none; }
.closed-tag { font-size: .75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); flex: none; }
.b-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.b-cc { color: var(--accent-deep); font-size: .85rem; font-weight: 600; }
.b-meta { font-size: .82rem; color: var(--muted); }
#b-list .empty { margin: 16px; }
.center-row { display: flex; justify-content: center; margin-top: 16px; }

/* 글 보기 */
.post-view { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.post-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.post-article h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.trip-box { background: color-mix(in srgb, var(--c-matcha) 22%, var(--surface)); border-radius: 10px; padding: 10px 14px; font-weight: 500; font-size: .92rem; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; padding-top: 8px; border-top: 1px dashed var(--line); }
.post-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.post-actions .inline-report { flex-basis: 100%; }
.comments { display: grid; gap: 8px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.comment.by-author { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.op { font-size: .72rem; padding: 1px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }

/* 글쓰기 */
.write-box { max-width: 720px; margin: 0 auto; }
.trip { display: grid; gap: 14px; background: var(--soft); border-radius: 12px; padding: 14px; }

/* 내 정보 */
.mini-profile { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 4px; }
.mini-profile b { font-family: var(--font-display); font-size: 1.3rem; }
.verify-area { margin-top: 48px; display: grid; gap: 16px; }
.verify-area h2 { font-size: 1.3rem; }
.verify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .verify-grid { grid-template-columns: 1fr; } }
.verify-grid h3 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.pt-badge { font-family: var(--font-mono); font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.done-line { color: var(--ok); font-weight: 600; font-size: .92rem; }
.inline select { width: auto; flex: none; }
.soon { display: flex; flex-wrap: wrap; gap: 6px; }
.soon span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }
.app-main .view { padding-block: 0; }

#x-deck { height: 600px; }
.offer { white-space: nowrap; }

/* 집 교환 찾기 패널 */
.where-to { display: grid; gap: 22px; }
.x-group { display: grid; gap: 12px; }
.x-group .h3, .where-to .h3 { font-size: 1.25rem; }
.where-to .result-line { margin: 0; }

/* 채팅: + 버튼, 시트 메뉴, 첨부 메시지, 체크리스트 */
.composer { grid-template-columns: auto 1fr auto; }
.plus { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; align-self: end; margin-bottom: 2px; }
.plus[aria-expanded="true"] { background: var(--ink); color: var(--bg); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .32); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.sheet { width: 100%; max-width: 420px; display: grid; gap: 8px; animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-group { background: var(--surface); border-radius: 14px; overflow: hidden; }
.sheet-group button, .sheet-cancel { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; text-align: left; }
.sheet-group button + button { border-top: 1px solid var(--line); }
.sheet-group button:hover, .sheet-cancel:hover { background: var(--fill); }
.sheet-group small { color: var(--muted); font-size: .8rem; margin-left: auto; }
.sheet svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sheet-cancel { justify-content: center; background: var(--surface); border-radius: 14px; font-weight: 600; color: var(--accent-deep); }

.attach-form { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.msg.media { padding: 4px; background: transparent; }
.msg.media.mine { background: transparent; }
.msg img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 12px; cursor: zoom-in; }
.msg .file, .msg .card-msg { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.msg .file b, .msg .card-msg b { font-weight: 600; }
.msg .file small, .msg .card-msg small { color: var(--muted); font-size: .78rem; }
.msg .card-msg a { color: var(--accent-deep); }
.msg.system { align-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: .82rem; text-align: center; padding: 2px 8px; }
.msg.system time { display: inline; margin-left: 6px; }

.checklist-panel { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.cl-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.cl-head .hint { display: block; }
.cl-items { display: grid; gap: 10px; }
.cl-item { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--fill); }
.cl-item.done { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-top b { font-size: .95rem; }
.cl-who { display: flex; gap: 6px; }
.cl-who span { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.cl-who span.on { background: var(--ok); color: #fff; }
.cl-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.cl-row input { min-width: 0; background: var(--surface); }
.cl-done { margin: 0; font-weight: 600; color: var(--ok); }

/* 프로필 메뉴 */
.tabs { align-items: center; }
.me-menu { position: relative; margin-left: 6px; }
.me-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.me-btn .avatar { width: 34px; height: 34px; font-size: .9rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.me-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(280px, calc(100vw - 32px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px 0; display: grid; }
.me-head { display: flex; gap: 12px; align-items: center; padding: 8px 18px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-head .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
.me-head b { font-size: 1.1rem; }
.me-pop a, .me-pop button { display: block; text-align: left; padding: 11px 18px; font: inherit; font-size: .98rem; color: var(--ink); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover { background: var(--fill); }
.me-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* 게시판 검색 */
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }

/* 저장 버튼, 별점 */
.round.save { color: var(--c-yuzu); font-size: 1.5rem; }
.review-form .stars { display: flex; gap: 4px; }
.star { border: 0; background: transparent; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.star.on { color: var(--c-yuzu); }
.review-cta { margin: 0; text-align: center; font-size: .92rem; background: color-mix(in srgb, var(--c-yuzu) 22%, var(--surface)); border-radius: 14px; padding: 10px 14px; }
.date-pair label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.cl-item .date-pair input { background: var(--surface); }

/* 내 일정 달력 */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal { gap: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head b { font-size: 1.15rem; }
.cal-head .link { font-size: 1.6rem; text-decoration: none; padding: 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 10px; background: var(--fill); display: grid; align-content: space-between; padding: 6px; font-size: .85rem; min-width: 0; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.ev-plan { --ev: var(--c-sky); }
.ev-swap { --ev: var(--c-matcha); }
.ev-mate { --ev: var(--c-apricot); }
.cal-dots i { background: var(--ev); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.cal-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ev); margin-right: 6px; }
.cal-list { display: grid; gap: 10px; }
.cal-ev { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border-left: 5px solid var(--ev); text-decoration: none; color: inherit; }
.cal-ev small { color: var(--muted); }

/* 저장된 이웃, 합의 내용, 친구 추천, 설정 */
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.saved-item { display: grid; gap: 12px; justify-items: center; }
.saved-item .pcard { position: relative; inset: auto; width: 100%; max-width: 360px; cursor: default; }
.agree-list { display: grid; gap: 12px; max-width: 680px; }
.agree-item { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; }
.agree-item .who-row b { font-size: 1.05rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .85rem; }
.settings { display: grid; gap: 16px; max-width: 680px; }
.settings .panel { gap: 14px; }
.plain-list { display: grid; gap: 6px; }
.plain-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-row:last-child { border-bottom: 0; }
.settings .account { margin-top: 0; max-width: none; border-top: 0; padding-top: 24px; }
.settings h2.h3, .view h2.h3 { font-size: 1.15rem; }
#p-cform.composer { grid-template-columns: 1fr auto; }

/* 환영 화면 */
.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 12px; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } }
.welcome-text { display: grid; gap: 14px; }
.welcome-text h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.welcome-actions { display: grid; gap: 10px; margin-top: 8px; }
.wl-item { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit; position: relative; }
.wl-item::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
.wl-item:hover { box-shadow: var(--shadow-lg); }
.wl-item b { font-size: 1.02rem; }
.wl-item span { color: var(--muted); font-size: .88rem; padding-right: 24px; }
#wl-card .pcard { position: relative; inset: auto; width: 100%; max-width: 360px; cursor: default; }

/* 가입 약관 상자 */
.terms-box { background: var(--soft); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; font-size: .9rem; }
.terms-box ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); max-height: 220px; overflow-y: auto; }
.terms-box ol strong { color: var(--ink); }
.consent-choice { display: grid; gap: 8px; }
.consent-choice .opt span { display: block; border-radius: 12px; }

/* 나를 소개해요 */
.intro-help { margin-top: -10px; }
.intro-block { display: grid; gap: 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.intro-head { display: flex; justify-content: space-between; align-items: center; }
.choice-group { border-top: 1px solid var(--line); padding: 8px 0; }
.choice-group:first-of-type { border-top: 0; }
.choice-group summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 4px 0; list-style-position: inside; }
.choice-group .options { margin-top: 8px; }
.choice-group .opt span { font-size: .86rem; padding: 6px 12px; }

/* 도시 직접 입력 + 자동완성 */
.custom-city { flex-basis: 100%; display: grid; gap: 8px; margin-top: 4px; }
.custom-row { display: flex; gap: 8px; }
.custom-row input { flex: 1; min-width: 0; }
.custom-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* 내 점수 현황 */
.score-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.score-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.score-list .mark { color: var(--muted); text-align: center; }
.score-list li.on .mark { color: var(--ok); font-weight: 700; }
.score-list li.on .name { font-weight: 600; }
.score-list .how { display: block; font-size: .8rem; color: var(--muted); }
.score-list button.how { background: none; border: 0; padding: 0; color: var(--accent-deep); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; text-align: left; }
.score-list .pts { font-family: var(--font-mono); color: var(--muted); }
.score-list li.on .pts { color: var(--ok); }

/* 카드 아래 차단·신고 */
.deck-safety { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; font-size: .85rem; }
.deck-safety .inline-report { width: 100%; max-width: 360px; }

/* 동행 안전 */
.chat-tip { margin: 0; padding: 10px 14px; font-size: .85rem; color: var(--muted); background: var(--soft); border-radius: 12px; }
.cl-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.me-head > div { display: grid; gap: 2px; min-width: 0; }
.me-score { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); text-decoration: none; }
.me-score .lv { width: 18px; height: 18px; color: var(--accent-deep); }
.me-score:hover { color: var(--ink); }

/* 본인 사진 */
.face-row { display: flex; gap: 16px; align-items: flex-start; }
.face-preview { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; border: 1.5px dashed var(--line); background: var(--fill) center / cover no-repeat; color: var(--muted); font-size: 1.8rem; cursor: pointer; display: grid; place-items: center; }
.face-preview.has { border-style: solid; border-color: var(--accent); }
.face-preview.has span { display: none; }
.face-row .hint { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .face-row { flex-direction: column; align-items: center; text-align: center; } .face-row .inline { justify-content: center; } }

/* 집 교환 끄기 */
.switch-opt small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.preview-col.muted-card .preview-slot { opacity: .45; filter: grayscale(.6); }

/* 환영 화면: 카드 아래 '시작하기' → 커뮤니티(첫 화면) */
.welcome-side { display: grid; gap: 16px; justify-items: center; }
.wl-start { width: 100%; max-width: 360px; justify-content: center; text-align: center; }

/* 가입하기 ↔ 로그인 전환 */
.login-switch { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.login-switch a { color: var(--ink); font-weight: 600; }
.deck-actions .round.save { width: 46px; height: 46px; font-size: 1.2rem; }
.deck-actions .round.save[data-label]::after { top: calc(100% + 12px); }

/* 글 반응: 👍 좋은 생각이에요 · 🤔 고민 중이에요 · 🙅 별로예요 */
.reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.react .e { font-size: 1.05rem; line-height: 1; }
.react b { font-weight: 600; color: var(--muted); min-width: .6em; }
.react b:empty { display: none; }
.react[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.react[aria-pressed="true"] b { color: var(--accent-deep); }
.react:hover { border-color: var(--accent); }
.post-actions .reactions { margin-right: 6px; }
.b-react { font-size: .8rem; color: var(--muted); margin-left: 6px; white-space: nowrap; }
@media (max-width: 480px) { .react .t { font-size: .8rem; } .react { padding: 6px 10px; } }

/* 로그인 화면 오른쪽: Urizib 소리 켜기·끄기 */
.song-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; }
.song-toggle[aria-pressed="true"] { color: var(--muted); }
.song-toggle:hover { border-color: var(--accent); }

/* 저장(책갈피): 저장한 사람이면 채워진 책갈피 */
.round.save { color: var(--ink); }
.round.save.on { color: var(--accent-deep); }
.round.save.on svg { fill: currentColor; }

/* 저장된 이웃 두 칸 */
.sv-tabs { margin: 4px 0 6px; }
.sv-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.sv-tabs button span { color: var(--accent-deep); font-weight: 700; margin-left: 2px; }
.sv-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.sv-tabs button[aria-selected="false"] { font-weight: 500; color: var(--muted); }

/* 내 정보: 나를 저장한 이웃 · 받은 후기 */
.me-saves { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--accent-deep); }
.me-saves svg { flex: none; }
.my-reviews { display: grid; gap: 10px; margin-top: 10px; }
.rv-reply-form input { flex: 1; min-width: 0; }

/* 내 정보: 우리 집 사진 올리기 */
.home-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .home-photos { grid-template-columns: repeat(2, 1fr); } }
.home-tile, .home-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill); }
.home-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; cursor: pointer; }
.home-add { border: 1.5px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font: inherit; cursor: pointer; }
.home-add span { font-size: 1.6rem; line-height: 1; }
.home-add:hover { border-color: var(--accent); color: var(--ink); }
