/* DearPaws — 시안(_reference/시안.png)의 모양: 흰 바탕 · 파란 강조 · 둥근 얼굴 · 얇은 구분선. 모바일 우선 */
:root {
  --bg: #fff; --soft: #f4f6fb; --card: #fff; --line: #e8ebf2; --ink: #14213d; --ink2: #4a5670; --muted: #8a94a8;
  --blue: #3d6fe8; --blue2: #5b8bff; --blueSoft: #eaf0ff; --blueLine: #c9d8ff; --red: #ef4b62; --amber: #f5b942; --green: #2fa36b;
  --tabs: 58px; --shadow: 0 6px 22px rgba(30, 50, 100, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #eef1f7; color: var(--ink); font: 15px/1.5 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.shell { max-width: 560px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; box-shadow: 0 0 60px rgba(30, 50, 100, .08); }
.main { padding-bottom: calc(var(--tabs) + 20px + env(safe-area-inset-bottom)); min-height: 100dvh; }
body.no-tabs .main { padding-bottom: 0; }
body.no-tabs .tabs { display: none; }
.logo { font-family: Poppins, "Pretendard Variable", sans-serif; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.logo sup { font: 600 10px/1 "Pretendard Variable", sans-serif; color: var(--blue); margin-left: 4px; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.warn { color: #b3541e; font-size: 13.5px; }
.err { color: var(--red); font-size: 13.5px; }

/* ── 하단 탭 ── */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 50; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 500; position: relative; }
.tabs a.on { color: var(--blue); }
.tabs a.on svg { stroke-width: 2.2; }
.tab-plus b { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(61, 111, 232, .35); }
.tab-plus b svg { stroke-width: 2.4; }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 10.5px/17px "Pretendard Variable", sans-serif; text-align: center; font-style: normal; }

/* ── 머리줄 ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.top-row { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; }
.top-row .logo { font-size: 22px; display: flex; align-items: center; gap: 7px; }
.top-row .logo img { width: 26px; height: 26px; border-radius: 8px; }
.top-row .sp { flex: 1; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 8px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar h1 { flex: 1; font-size: 17px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .bar-r { min-width: 40px; display: flex; justify-content: flex-end; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; }
.ibtn:active { background: var(--soft); }
.ibtn .badge { top: 3px; left: 22px; }
.subtabs { display: flex; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a, .subtabs button { flex: none; padding: 10px 0 9px; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.subtabs .on { color: var(--ink); border-color: var(--blue); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 99px; font-weight: 700; font-size: 15px; }
.btn:disabled { opacity: .5; }
.btn-cta { background: var(--blue); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-soft { background: var(--blueSoft); color: var(--blue); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.chips { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--soft); color: var(--ink2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--blue); color: #fff; }

/* ── 얼굴 ── */
.uav { display: inline-block; width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; background: var(--soft); position: relative; }
.uav img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.uav.preset { padding: 2px; background: var(--ring, #c9d8ff); }
.uav.preset img { background: #fff; }
.ring0 { --ring: #f7838f; } .ring1 { --ring: #f6b26b; } .ring2 { --ring: #ffd966; } .ring3 { --ring: #93c47d; }
.ring4 { --ring: #76a5af; } .ring5 { --ring: #6fa8dc; } .ring6 { --ring: #8e7cc3; } .ring7 { --ring: #c27ba0; }
.ai { display: inline-block; font: 700 10px/1 "Pretendard Variable", sans-serif; letter-spacing: .03em; color: var(--blue); background: var(--blueSoft); border-radius: 5px; padding: 3px 5px; vertical-align: 2px; }
.sample { display: inline-block; font: 600 10px/1 "Pretendard Variable", sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; vertical-align: 2px; }

/* ── 게시물 카드 ── */
.post { display: flex; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.post.open { cursor: default; }
.post .body { flex: 1; min-width: 0; }
.who { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; line-height: 1.3; }
.who b { font-weight: 700; }
.who .hd { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .more { margin-left: auto; color: var(--muted); width: 28px; height: 22px; display: grid; place-items: center; align-self: center; }
.who .more svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sub a { color: var(--ink2); font-weight: 600; }
.text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.5; }
.text a, .ctext a { color: var(--blue); }
.insp { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 10px; border-radius: 99px; background: var(--blueSoft); color: var(--blue); font-size: 12.5px; font-weight: 600; }
.insp svg { width: 14px; height: 14px; }
.pics { display: grid; gap: 4px; margin-top: 10px; border-radius: 16px; overflow: hidden; }
.pics.n2, .pics.n3, .pics.n4 { grid-template-columns: 1fr 1fr; }
.pics img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; background: var(--soft); }
.pics.n1 img { aspect-ratio: auto; max-height: 460px; }
.pics.n3 img:first-child { grid-row: span 2; aspect-ratio: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meta .tagp { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink2); background: var(--soft); border-radius: 99px; padding: 3px 9px 3px 4px; }
.meta .tagp .uav { width: 18px; height: 18px; padding: 1px; }
.meta .place { padding-left: 8px; }
.meta .place svg { width: 13px; height: 13px; }
.poll { margin-top: 10px; display: grid; gap: 6px; }
.poll button, .poll .opt { position: relative; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; }
.poll .opt i { position: absolute; inset: 0 auto 0 0; background: var(--blueSoft); z-index: 0; }
.poll .opt span, .poll .opt b { position: relative; z-index: 1; }
.poll .opt.mine { border-color: var(--blue); }
.poll small { color: var(--muted); font-size: 12px; }
.acts { display: flex; align-items: center; gap: 22px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.acts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; }
.acts svg { width: 19px; height: 19px; }
.acts .on { color: var(--red); }
.acts .on svg { fill: currentColor; }
.acts .bm.on { color: var(--blue); }
.acts .sp { flex: 1; }
.empty { padding: 48px 28px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.loading { display: grid; place-items: center; padding: 60px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--blueLine); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.morebtn { display: block; margin: 16px auto; }
.banner { margin: 12px 16px 4px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #eaf0ff, #f3ecff); display: flex; gap: 12px; align-items: center; }
.banner > div:not(.faces) { flex: 1; min-width: 0; }
.banner b { display: block; font-size: 15.5px; }
.banner p { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.banner .faces { display: flex; flex: none; }
.banner .faces .uav:nth-child(n+4) { display: none; }
.banner .faces .uav { width: 34px; height: 34px; margin-left: -9px; border: 2px solid #fff; }
.banner .faces .uav:first-child { margin-left: 0; }
.waitline { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--ink2); background: var(--blueSoft); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: bounce 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── 댓글 ── */
.csec { padding: 4px 0 90px; }
.cmt { display: flex; gap: 10px; padding: 10px 16px; }
.cmt.reply { padding-left: 62px; }
.cmt .uav { width: 36px; height: 36px; }
.cmt.reply .uav { width: 30px; height: 30px; }
.cmt .cb { flex: 1; min-width: 0; }
.ctext { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 1px; }
.cacts { display: flex; gap: 14px; margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 60; }
.composer .to { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 0 6px 6px; }
.composer form { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; border: 0; outline: none; background: var(--soft); border-radius: 20px; padding: 10px 14px; max-height: 120px; min-height: 42px; }
.composer .send { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.composer .send:disabled { opacity: .4; }
.composer .send svg { width: 19px; height: 19px; }

/* ── 찾기 ── */
.sbox { margin: 8px 16px 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.sbox input { flex: 1; border: 0; outline: none; background: none; min-width: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 8px; }
.sec-h h3 { font-size: 16px; font-weight: 700; }
.sec-h a { font-size: 13px; color: var(--blue); font-weight: 600; }
.hstrip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.hstrip::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pcard .uav { width: 68px; height: 68px; margin-bottom: 4px; }
.pcard b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard small { color: var(--muted); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .btn { margin-top: 6px; }
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; }
.tgrid a { padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.tgrid b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgrid small { color: var(--muted); font-size: 12px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.mcard { border-radius: 16px; background: var(--soft); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; overflow: hidden; }
.mcard.pic { padding: 0; }
.mcard.pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mcard.pic .mt { padding: 0 12px 12px; }
.mcard p { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .mw { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 600; margin-top: auto; }
.mcard .mw .uav { width: 22px; height: 22px; padding: 1px; }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.urow .ub { flex: 1; min-width: 0; }
.urow .ub b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .ub small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 새 게시물 ── */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 4px; }
.seg button { height: 38px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink2); }
.seg button.on { border-color: var(--blue); color: var(--blue); background: var(--blueSoft); }
.writer { padding: 10px 16px; }
.writer .wh { display: flex; align-items: center; gap: 10px; }
.writer .wh b { display: block; }
.writer .wh small { color: var(--muted); font-size: 13px; }
.writer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 130px; margin-top: 12px; font-size: 16px; line-height: 1.5; }
.writer textarea::placeholder { color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs .th { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; position: relative; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(20, 33, 61, .7); color: #fff; font-size: 14px; line-height: 22px; }
.rows { border-top: 1px solid var(--line); margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.row svg.chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.row small { display: block; color: var(--muted); font-size: 12.5px; }
.row .grow { flex: 1; min-width: 0; }
.row input[type=text] { border: 0; outline: none; width: 100%; background: none; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d5dae6; transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { left: 21px; }
.pollbox { padding: 10px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.pollbox input { height: 40px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; outline: none; }
.petpick { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 16px 12px; }
.petpick .chip .uav { width: 22px; height: 22px; padding: 1px; margin-left: -8px; }

/* ── 메시지 ── */
.thread { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.thread .uav { width: 52px; height: 52px; }
.thread .tb { flex: 1; min-width: 0; }
.thread .tb b { font-weight: 700; }
.thread .tb p { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.unread .tb p { color: var(--ink); font-weight: 600; }
.thread .tr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.thread .tr i { position: static; }
.thread .paw { width: 52px; height: 52px; border-radius: 50%; background: var(--blueSoft); color: var(--blue); display: grid; place-items: center; flex: none; }
.chat { padding: 14px 14px 100px; display: flex; flex-direction: column; gap: 4px; }
.chat .day { align-self: center; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.bub { max-width: 78%; padding: 9px 13px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.bub.them { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bub.typing { padding: 13px 14px; }
.chat .sys { align-self: center; margin: 8px 0; padding: 7px 14px; border-radius: 99px; background: var(--blueSoft); color: var(--blue); font-size: 13px; font-weight: 600; }
.chat .hint { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); max-width: 300px; margin: 4px 0 12px; }
.bar .peer { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar .peer .uav { width: 34px; height: 34px; }
.bar .peer b { display: block; line-height: 1.2; }
.bar .peer small { color: var(--muted); font-size: 12px; }

/* ── 프로필 ── */
.cover { height: 96px; background: linear-gradient(120deg, #dfe9ff, #efe6ff 60%, #ffe9f0); }
.cover.pet { background: linear-gradient(120deg, #ffeccc, #ffdfe6 60%, #e6ecff); }
.phead { padding: 0 16px 6px; margin-top: -40px; }
.phead .prow { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.phead .uav { width: 84px; height: 84px; border: 4px solid #fff; box-sizing: content-box; }
.phead .uav.preset { padding: 3px; box-sizing: border-box; width: 92px; height: 92px; }
.phead .pbtns { display: flex; gap: 8px; padding-bottom: 6px; }
.phead h2 { font-size: 21px; font-weight: 800; margin-top: 8px; }
.phead .hd { color: var(--muted); }
.phead .bio { margin-top: 8px; white-space: pre-wrap; }
.phead .line { margin-top: 6px; font-size: 13.5px; color: var(--ink2); }
.phead .line a { font-weight: 700; color: var(--blue); }
.stats { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.stats b { color: var(--ink); font-weight: 800; }
.linked { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 12px; border-radius: 16px; background: var(--soft); }
.linked .uav { width: 56px; height: 56px; }
.linked .lb { flex: 1; min-width: 0; }
.linked .lb p { font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked .lb small { color: var(--muted); font-size: 12.5px; }
.friends { display: flex; gap: 14px; padding: 4px 16px 4px; overflow-x: auto; }
.friends a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink2); }
.friends .uav { width: 48px; height: 48px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.fact p { flex: 1; font-size: 14.5px; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact button { color: var(--muted); font-size: 18px; width: 28px; height: 28px; }
.note { margin: 12px 16px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 13.5px; color: var(--ink2); }

/* ── 시트 · 겹침 화면 ── */
.modal, .overlay { position: fixed; inset: 0; z-index: 90; background: rgba(20, 33, 61, .45); display: grid; place-items: end center; }
@media (min-width: 560px) { .modal, .overlay { place-items: center; } .sheet { border-radius: 24px !important; } }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); position: relative; max-height: 92dvh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet h2 { font-size: 20px; font-weight: 800; padding-right: 30px; }
.sheet-x { position: absolute; top: 14px; right: 14px; font-size: 26px; line-height: 1; color: var(--muted); width: 36px; height: 36px; }
.sheet label { font-size: 13px; font-weight: 700; color: var(--ink2); display: block; margin-bottom: 4px; }
.sheet textarea, .sheet input[type=text], .sheet input[type=password], .sheet input[type=date], .sheet select { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; background: #fff; outline: none; }
.sheet textarea:focus, .sheet input:focus, .sheet select:focus { border-color: var(--blueLine); }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .pf-me { display: flex; gap: 14px; align-items: center; }
.sheet .pf-me .uav { width: 76px; height: 76px; }
.sheet .handle { position: relative; }
.sheet .handle span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sheet .handle input { padding-left: 28px; }
.sheet .menu { display: grid; }
.sheet .menu button, .sheet .menu a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
.sheet .menu .danger { color: var(--red); }
.radio { display: grid; gap: 8px; }
.radio label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 500; color: var(--ink); margin: 0; }
.radio label b { display: block; font-size: 14.5px; }
.radio label small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.radio input { margin-top: 3px; accent-color: var(--blue); }
.gbtn { min-height: 44px; display: grid; place-items: center; }
.keep { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.fb-stars { display: flex; gap: 6px; }
.fb-stars button { font-size: 30px; color: var(--line); }
.fb-stars button.on { color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(20, 33, 61, .93); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 입장 암호 · 연령 확인 ── */
.dw-gate { position: fixed; inset: 0; z-index: 120; background: linear-gradient(160deg, #f4f7ff, #fff 55%, #fdf3f6); display: grid; place-items: center; padding: 24px; overflow: auto; }
.gate-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate-card .faces { display: flex; justify-content: center; }
.gate-card .faces .uav { width: 48px; height: 48px; margin-left: -10px; border: 3px solid #fff; }
.gate-card .logo { font-size: 40px; }
.gate-card p { color: var(--ink2); }
.gate-card input { height: 50px; border-radius: 16px; border: 1.5px solid var(--line); padding: 0 16px; text-align: center; outline: none; background: #fff; }

/* ── 자매 서비스 ── */
.sisters { margin-top: 8px; text-align: left; }
.sisters-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 4px; }
.sisters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sisters a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--soft); }
.sisters img { width: 44px; height: 44px; border-radius: 12px; }
.sisters b { display: block; font-size: 14px; }
.sisters small { color: var(--muted); font-size: 12.5px; }

/* ── 앱 설치 팝업 (install.js, DearWorld 공통) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(30, 50, 100, .25); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: var(--blue); color: #fff; }
.dwi-ghost { border: 1px solid var(--line); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--soft); color: #2f7cf6; }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
