/* ===== 아띠 디자인 토큰: 크림 바탕 + 파스텔 + 둥근 모양 ===== */
:root {
  --bg: #fff8ef;
  --card: #ffffff;
  --ink: #3a2e2a;
  --sub: #8a7a70;
  --mute: #b9aaa0;
  --line: #f1e4d5;
  --pri: #ff8a65;
  --pri-d: #f2704a;
  --pri-l: #ffece4;
  --sky: #5cb8ff;
  --sky-l: #e3f3ff;
  --mint: #6fd3a6;
  --butter: #ffd36b;
  --pink: #ff9ebb;
  --ok: #3fbf7f;
  --danger: #ff6b81;
  --r: 22px;
  --hdr: 58px;
  --tab: 68px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --shadow: 0 6px 22px rgba(120, 80, 50, .08);
  --shadow-pop: 0 3px 0 rgba(120, 80, 50, .12);
  --font-cute: "Jua", Pretendard, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #e6eaf0; color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img.px, canvas.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }
/* 실제 사진은 부드럽게, 꽉 차게 */
img.px[src^="img/"], img.px[src^="data:image/jpeg"], img.photo { image-rendering: auto; object-fit: cover; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,.06); }
main { flex: 1; padding-bottom: calc(var(--tab) + var(--sb) + 16px); }
main.full { flex: none; padding-bottom: 0; height: calc(100dvh - var(--hdr) - var(--st) - var(--tab) - var(--sb)); overflow: hidden; display: flex; flex-direction: column; }

/* 헤더 */
.topbar { position: sticky; top: 0; z-index: 20; height: calc(var(--hdr) + var(--st)); padding: var(--st) 12px 0 16px; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; font-weight: 800; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.logo span { font-family: "Press Start 2P", monospace; font-size: 17px; color: var(--pri); letter-spacing: 1px; text-shadow: 2px 2px 0 #cde9fd; }
.logo small { font-weight: 800; color: var(--sub); font-size: 13px; }
.hdr-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; position: relative; color: var(--ink); font-size: 18px; }
.icon-btn:active { background: var(--line); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* 하단 탭 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  height: calc(var(--tab) + var(--sb)); padding-bottom: var(--sb); background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mute); font-size: 11px; font-weight: 700; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on svg { stroke-width: 2.4; }
.tab-center i { width: 50px; height: 50px; margin-top: -22px; border-radius: 18px; background: linear-gradient(140deg, #5cc0ff, #2f96ec); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(56,168,245,.45), inset 0 -3px 0 rgba(0,0,0,.12); border: 3px solid #fff; }
.tab-center i img { width: 27px; height: 24px; }
.tabbar a.tab-center.on span { color: var(--pri); }
body.kb .tabbar { display: none; }
body.kb main.full { height: calc(100dvh - var(--hdr) - var(--st)); }

/* 공통 */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.pane { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; color: var(--sub); padding: 40px 16px; line-height: 1.7; font-size: 14px; }
.empty a { color: var(--pri); font-weight: 700; }
.center { text-align: center; }
.hint { color: var(--sub); font-size: 12.5px; text-align: center; line-height: 1.6; margin: 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .1s, filter .15s; user-select: none; text-align: center; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.lg { height: 54px; font-size: 16.5px; border-radius: 16px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.pri { background: var(--pri); color: #fff; box-shadow: 0 4px 12px rgba(56,168,245,.3); }
.btn.sky { background: var(--pri-l); color: #0f6fb8; }
.btn.gray { background: #eef1f5; color: var(--ink); }
.btn.ok { background: #e6f8ea; color: #2b8a3e; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: none; color: var(--sub); font-weight: 600; font-size: 14px; height: 40px; }
.danger-t { color: var(--danger) !important; }
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.6s infinite; }
@keyframes shine { 60%, 100% { left: 130%; } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row3 .btn { padding: 0 6px; font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; color: var(--sub); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: #f1f3f5; color: #495057; }
.tag.c0 { background: #ffe0ea; color: #c2255c; }
.tag.c1 { background: #dcf7e3; color: #2b8a3e; }
.tag.c2 { background: #dbeeff; color: #1971c2; }
.tag.warn { background: #fff0f0; color: #e03131; }
.seg { display: flex; background: #eceff3; border-radius: 14px; padding: 4px; gap: 2px; }
.seg > * { flex: 1; height: 36px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--sub); display: grid; place-items: center; white-space: nowrap; }
.seg > .on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.seg b { color: var(--pri); margin-left: 2px; }
.seg.mini > * { height: 32px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--sub); }
input:not([type]), input[type=number], input[type=text], textarea { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; resize: none; }
input:focus, textarea:focus { border-color: var(--pri); }
.form { display: flex; flex-direction: column; gap: 14px; }
.card.form { padding: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); justify-content: center; }
.check input { width: 18px; height: 18px; accent-color: var(--pri); }
.tg { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { width: 44px; height: 26px; border-radius: 13px; background: #d6dbe1; position: relative; transition: .2s; flex: none; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.tg input:checked + i { background: var(--pri); }
.tg input:checked + i::after { left: 21px; }
.range { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--sub); }
.range input { flex: 1; accent-color: var(--pri); }

/* 시트 */
#sheet-root { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
#sheet-root:empty { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15,20,30,.4); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; bottom: 0; left: 50%; width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(20px + var(--sb)); transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2,.9,.3,1); overscroll-behavior: contain; }
#sheet-root.on { pointer-events: auto; }
#sheet-root.on .sheet-bg { opacity: 1; }
#sheet-root.on .sheet { transform: translate(-50%, 0); }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #d6dbe1; margin: 4px auto 12px; touch-action: none; padding: 6px 0; background-clip: content-box; box-sizing: content-box; }
.sheet-title { margin: 0 0 14px; font-size: 18px; text-align: center; }
.sheet-body { display: flex; flex-direction: column; gap: 10px; }

/* 토스트 · 푸시 배너 */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + var(--sb) + 14px); z-index: 2100; width: calc(100% - 32px); max-width: 440px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body[data-route="walk"] #toast-root, body[data-route="care"] #toast-root { bottom: auto; top: calc(var(--st) + 120px); }
.toast { background: rgba(29,36,51,.94); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: auto; }
.toast.on { opacity: 1; transform: none; }
.toast span { flex: 1; }
.toast button { color: #7cc8ff; font-weight: 800; font-size: 14px; white-space: nowrap; }
#banner-root { position: fixed; top: calc(var(--st) + 8px); left: 50%; transform: translateX(-50%); width: calc(100% - 20px); max-width: 460px; z-index: 2200; pointer-events: none; }
.push { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: rgba(255,255,255,.97); border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16); transform: translateY(-140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); pointer-events: auto; backdrop-filter: blur(12px); }
.push.on { transform: none; }
.push img { width: 42px; height: 42px; border-radius: 12px; background: var(--pri-l); object-fit: contain; flex: none; }
.push div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push b { font-size: 14px; }
.push span { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push small { align-self: flex-start; color: var(--mute); font-size: 11px; }

/* ===== 도트 아바타 ===== */
.av { padding: 12px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; justify-content: center; gap: 6px; }
.steps i { width: 8px; height: 8px; border-radius: 4px; background: #d6dbe1; transition: .2s; }
.steps i.on { width: 24px; background: var(--pri); }
.steps i.done { background: #9fd3fa; }
.av-h { text-align: center; font-size: 19px; margin: 2px 0; }
.sub-h { font-size: 13px; font-weight: 700; color: var(--sub); margin: 4px 0 -4px; }
.species-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.species { position: relative; aspect-ratio: 1 / .92; background: #fff; border-radius: 20px; border: 2.5px solid transparent; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; transition: .15s; }
.species img { width: 72px; height: 72px; }
.species.on { border-color: var(--pri); background: #f2f9ff; }
.species .chk { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--pri); color: #fff; font-style: normal; font-size: 12px; display: none; place-items: center; }
.species.on .chk { display: grid; }
.pet-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pet-pill { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; }
.pet-pill img { width: 32px; height: 32px; border-radius: 50%; background: #f1f6fb; object-fit: contain; }
.slots { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; align-items: end; }
.slot { position: relative; aspect-ratio: 1; border-radius: 20px; background: #eef2f6; overflow: hidden; display: grid; place-items: center; border: 2.5px solid transparent; }
.slot.body { aspect-ratio: .78; }
.slot.active { border-color: var(--pri); background: #eaf5ff; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .15s; }
.slot .ph { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sub); font-size: 13px; font-weight: 700; }
.slot .ph b { font-size: 30px; }
.slot .ph small { font-weight: 500; color: var(--mute); }
.slot .cn { position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.95); z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.slot .tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.slot .tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.slot .bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.slot .br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.slot:not(.active):not(:has(img)) .cn { border-color: #c5cdd6; filter: none; }
.slot-tag { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(0,0,0,.5); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.slot-now { text-align: center; font-size: 13px; color: var(--sub); margin: -4px 0; }
.slot-now b { color: var(--pri); }

.conv { align-items: center; }
.conv-photo { position: relative; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; border: 3px solid #9fd8ff; box-shadow: 0 0 0 6px rgba(56,168,245,.15), 0 8px 24px rgba(56,168,245,.25); }
.conv-photo img { width: 100%; height: 100%; object-fit: cover; }
.conv-photo .scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(56,168,245,.55), transparent); animation: scan 1.4s linear infinite; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.conv-label { font-weight: 800; color: #1971c2; margin: 0; font-size: 14px; }
.conv-arrow { color: var(--mute); font-size: 18px; margin: -10px 0; }
.conv-out { position: relative; width: 230px; height: 230px; border-radius: 18px; overflow: hidden; background: #f1f6fb; }
.conv-out canvas { width: 100%; height: 100%; }
.conv-out .grid-ov { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,168,245,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(56,168,245,.12) 1px, transparent 1px); background-size: 11.5px 11.5px; pointer-events: none; }
.progress { position: relative; width: 100%; height: 34px; border-radius: 17px; background: #e7eef6; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #9fd8ff, #4fb4f7); border-radius: 17px; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; color: #17507d; }
.conv-stage { color: var(--sub); font-size: 13px; margin: -4px 0 0; }

.result-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; align-items: center; }
.rc-top, .rc-bot { margin: 0; font-weight: 800; font-size: 14px; }
.rc-bot { color: var(--sub); font-weight: 600; font-size: 13px; }
.rc-img { width: min(76vw, 300px); aspect-ratio: 1; margin: 6px 0; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.rc-img img, .rc-img canvas { width: 100%; height: 100%; display: block; }
.rc-img.editing { animation: none; outline: 2px dashed var(--pri); outline-offset: 4px; border-radius: 12px; touch-action: none; cursor: crosshair;
  background: repeating-conic-gradient(#eef2f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.result-card > .btn { margin-top: 8px; }
.ai-badge { margin-top: 8px; font-size: 12px; font-weight: 700; color: #1971c2; background: var(--pri-l); padding: 4px 10px; border-radius: 10px; }
.ai-badge.off { color: var(--sub); background: #f1f3f5; font-weight: 600; }
.editor { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ed-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-tools button { height: 38px; border-radius: 12px; background: #f1f3f5; font-size: 12.5px; font-weight: 700; border: 2px solid transparent; }
.ed-tools button.on { border-color: var(--pri); background: #eaf5ff; color: var(--pri-d); }
.ed-pal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ed-pal .sw { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.opt-h { margin: 6px 0 -4px; font-size: 15px; text-align: center; }
.opt { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.opt h4 { margin: 0; font-size: 14px; }
.opt h4 small { color: var(--mute); font-weight: 500; font-size: 12px; margin-left: 4px; }
.swatches { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 20px; }
.swatches.center { justify-content: center; flex-wrap: wrap; }
.sw { flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.sw.on { box-shadow: 0 0 0 2.5px var(--pri); }
.sw span { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.accs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.acc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 14px; background: #f4f6f9; border: 2px solid transparent; font-size: 11.5px; font-weight: 700; color: var(--sub); }
.acc img { height: 28px; width: auto; max-width: 44px; }
.acc.on { border-color: var(--pri); background: #eaf5ff; color: var(--pri-d); }
.toggles { display: flex; gap: 18px; justify-content: center; }

/* 배경화면 */
.wp { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.wp-phone { position: relative; width: 170px; aspect-ratio: 1080 / 2340; border-radius: 26px; overflow: hidden; border: 6px solid #1d2433; box-shadow: var(--shadow); }
.wp-phone img { width: 100%; height: 100%; display: block; }
.wp-clock { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font-size: 34px; font-weight: 300; color: rgba(29,36,51,.75); letter-spacing: 1px; }

/* ===== 피드 ===== */
.feed { display: flex; flex-direction: column; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px 10px; scrollbar-width: none; background: #fff; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; }
.story .ring { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: #dfe4ea; }
.story.friend .ring { background: linear-gradient(135deg, #ffb3c8, #ffd43b, #8ce99a); }
.story.walking .ring { background: linear-gradient(135deg, #40c057, #38a8f5); }
.story img { width: 100%; height: 100%; border-radius: 50%; background: #f1f6fb; border: 2.5px solid #fff; object-fit: contain; }
.story small { font-size: 11.5px; font-weight: 600; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.me .ring { background: #fff; border: 2px dashed #c5cdd6; }
.story.me i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--pri); color: #fff; border: 2px solid #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.story em { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 15px; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.shortcuts { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts a { flex: none; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 14px; background: #f4f6f9; font-size: 13px; font-weight: 700; }
.live-banner { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; }
.live-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.live-banner b { font-size: 14px; }
.live-banner small { color: var(--sub); font-size: 12px; }
.live-ico { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
#posts { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.post { background: #fff; padding-bottom: 12px; }
.post header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.post header > div { flex: 1; display: flex; flex-direction: column; }
.post header b { font-size: 14px; display: flex; align-items: center; gap: 3px; }
.post header small { font-size: 12px; color: var(--sub); }
.ava { width: 38px; height: 38px; border-radius: 50%; background: #eef5fc; object-fit: contain; border: 1.5px solid var(--line); }
.verified { width: 16px; height: 16px; }
.post-media { position: relative; aspect-ratio: 1; background: #eef2f6; overflow: hidden; user-select: none; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media .pop { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; color: #fff; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.post-media .pop svg { width: 100%; height: 100%; }
.post-media .pop.go { animation: heartpop .8s ease; }
@keyframes heartpop { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.walk-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(29,36,51,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; }
svg.fill { fill: currentColor; }
.post-actions { display: flex; gap: 4px; padding: 6px 8px 0; }
.post-actions button { display: flex; align-items: center; gap: 4px; padding: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.post-actions button.on[data-act=like] { color: #ff4d6d; }
.post-actions button.on[data-act=save] svg { fill: currentColor; }
.post-actions .right { margin-left: auto; }
.post-text { margin: 2px 14px 4px; font-size: 14px; line-height: 1.5; }
.post-text .ht { color: #1c7ed6; }
.post time { display: block; margin: 0 14px; font-size: 11.5px; color: var(--mute); }
.cmts { display: flex; flex-direction: column; gap: 12px; max-height: 45dvh; overflow-y: auto; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt img { width: 32px; height: 32px; border-radius: 50%; background: #eef5fc; object-fit: contain; flex: none; }
.cmt p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; }
.composer-sheet { display: flex; flex-direction: column; gap: 12px; }
.cm-media { aspect-ratio: 1.4; border-radius: 16px; overflow: hidden; background: #eef2f6; }
.cm-media img { width: 100%; height: 100%; object-fit: cover; }
.single-post .post { padding-bottom: 0; }

/* ===== 프로필 ===== */
.profile { padding: 12px 16px 0; }
.pf-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 120 / 56; background: #8ee0a6; }
.pf-cover img { width: 100%; height: 100%; display: block; }
.pf-head { display: flex; align-items: flex-end; gap: 14px; margin-top: -42px; padding-left: 6px; }
.pf-ava { width: 96px; height: 96px; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, #ffb3c8, #ffd43b, #c9a7f5, #ffb3c8); flex: none; }
.pf-ava img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: #eef5fc; object-fit: cover; }
.pf-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-bottom: 6px; }
.pf-stats div { display: flex; flex-direction: column; gap: 1px; }
.pf-stats small { font-size: 12px; color: var(--sub); }
.pf-stats b { font-size: 18px; font-weight: 800; }
.pf-info { padding: 8px 2px 0; }
.pf-info h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 4px; }
.pf-info .verified { width: 20px; height: 20px; }
.handle { margin: 4px 0 0; font-weight: 700; font-size: 14px; }
.bio { margin: 2px 0 10px; font-size: 14px; color: #4b5563; }
.pf-btns { margin: 14px 0 6px; }
.pf-btns .btn { height: 40px; font-size: 14px; }
.pf-menu { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.pf-menu::-webkit-scrollbar { display: none; }
.pf-menu a { flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pf-menu span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.05); }
.pf-menu small { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.sec-h a { color: var(--pri); font-size: 13px; font-weight: 700; }
.pets-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.pet-card { flex: none; width: 96px; background: #fff; border-radius: 18px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); }
.pc-img { position: relative; width: 64px; height: 64px; }
.pc-img > img:first-child { width: 64px; height: 64px; border-radius: 50%; background: #f1f6fb; object-fit: contain; }
.pc-img .dot-badge { position: absolute; right: -6px; bottom: -4px; width: 28px; height: 28px; border-radius: 10px; background: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); object-fit: contain; }
.ava-pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.ava-pick button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ava-pick img { width: 60px; height: 60px; border-radius: 50%; background: #f1f6fb; object-fit: contain; border: 2px solid var(--line); }
.ava-pick small { font-size: 11px; color: var(--sub); font-weight: 600; }
.pet-card b { font-size: 13.5px; margin-top: 4px; }
.pet-card small { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 86px; }
.pf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px -16px 0; border-bottom: 1px solid var(--line); background: #fff; }
.pf-tabs a { display: grid; place-items: center; height: 46px; color: var(--mute); border-bottom: 2px solid transparent; }
.pf-tabs a.on { color: var(--ink); border-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 3px -16px 0; }
.pgrid button { position: relative; aspect-ratio: 1; overflow: hidden; background: #eef2f6; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgrid i { position: absolute; top: 6px; right: 8px; color: #fff; font-style: normal; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.walk-rec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.walk-rec span { font-size: 24px; }
.walk-rec div { display: flex; flex-direction: column; gap: 2px; }
.walk-rec small { color: var(--sub); font-size: 12px; }
.ava-big { width: 220px; aspect-ratio: 1; margin: 0 auto 6px; }
.ava-big img { width: 100%; height: 100%; border-radius: 50%; background: #eef5fc; object-fit: contain; }
.pet-sheet { display: flex; flex-direction: column; gap: 10px; }
.pet-sheet h3 { text-align: center; margin: 0 0 4px; }
.pet-sheet h3 small { color: var(--sub); font-weight: 600; font-size: 14px; }
.settings { display: flex; flex-direction: column; gap: 6px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.set-row div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.set-row small { color: var(--sub); font-size: 12px; }

/* ===== 산책 ===== */
.walk { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.walk-seg { margin: 10px 12px; flex: none; }
.walk-body { flex: 1; min-height: 0; position: relative; }
.walk-body.rec, .walk-body.friends { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.map-wrap { position: absolute; inset: 0; overflow: hidden; background: #e8eef3; z-index: 1; font-family: inherit; }
.map-wrap.picking { cursor: crosshair; }
.map-wrap.picking::after { content: "📍 위치를 탭하세요"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 900; background: rgba(29,36,51,.8); color: #fff; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; pointer-events: none; }
.dot-map .maplibregl-canvas { image-rendering: pixelated; }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-attrib { font-size: 9px; }
.maplibregl-ctrl-bottom-right { bottom: 0; }
.ent-icon, .pin-icon { cursor: pointer; }
.map-top { position: absolute; top: 10px; left: 12px; right: 60px; pointer-events: none; z-index: 1000; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.map-filters { pointer-events: auto; margin: 0 -60px 0 -12px; padding: 0 60px 0 12px; width: calc(100% + 72px); }
.map-filters .chip { height: 32px; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0,0,0,.1); border-color: #fff; color: var(--ink); }
.map-filters .chip.on { border-color: var(--ink); color: #fff; }
.map-filters .chip em { font-style: normal; color: var(--pri); font-weight: 800; }
.map-filters .chip.on em { color: #9fd8ff; }
.pill.status { pointer-events: auto; background: rgba(29,36,51,.86); color: #fff; padding: 7px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; }
.map-research { position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%); top: 140px; background: #fff; box-shadow: var(--shadow); }
.map-ctrl button.on { background: var(--pri-l); }
/* 지도 위 도트 캐릭터 */
.ent-icon, .pin-icon, .heart-icon, .flag-icon { background: none; border: 0; }
.ent { position: relative; width: 72px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.ent-label { position: absolute; top: -20px; z-index: 3; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 2px 6px rgba(0,0,0,.15); color: var(--ink); }
.ent.me .ent-label { background: var(--pri); color: #fff; }
.ent.friend .ent-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 4px; vertical-align: 1px; }
.ent.stranger .ent-label { background: rgba(255,255,255,.82); color: var(--sub); font-weight: 600; }
.ent-sp { display: flex; align-items: flex-end; gap: 0; position: relative; z-index: 1; transition: transform .15s; }
.ent-sp img { transform-origin: 50% 100%; }
.ent-sp img.h { width: 30px; height: 30px; margin-right: -8px; }
.ent-sp img.p { width: 40px; height: 40px; }
.ent-sp img.p.custom { width: 42px; height: 42px; object-fit: contain; }
.ent.left .ent-sp { transform: scaleX(-1); }
/* 대기: 숨쉬듯 꼼지락 */
.ent .ent-sp img.p { animation: breathe 1.4s ease-in-out infinite; animation-delay: calc(var(--ph) * -1.4); }
.ent .ent-sp img.h { animation: breathe 1.8s ease-in-out infinite; animation-delay: calc(var(--ph) * -1.8); }
@keyframes breathe { 50% { transform: scale(1.04, .95); } }
/* 걷기: 통통 뛰기 + 찌그러짐 */
.ent.moving .ent-sp img.p { animation: hop .3s cubic-bezier(.3,.7,.4,1) infinite alternate; }
.ent.moving .ent-sp img.h { animation: hop .36s cubic-bezier(.3,.7,.4,1) infinite alternate .08s; }
@keyframes hop { 0% { transform: translateY(0) scale(1.06, .92); } 100% { transform: translateY(-6px) scale(.96, 1.05); } }
.ent-shadow { width: 46px; height: 7px; border-radius: 50%; background: rgba(60,40,20,.22); margin-top: -4px; }
.ent.moving .ent-shadow { animation: shadow .3s infinite alternate; }
@keyframes shadow { to { transform: scaleX(.8); opacity: .6; } }
/* 머리 위 이모티콘 말풍선 */
.ent-emote { position: absolute; top: -50px; left: 50%; transform: translateX(-50%) scale(0); background: #fff; border: 2px solid #3b2f2f; border-radius: 10px; font-size: 14px; line-height: 1; padding: 4px 5px; box-shadow: 2px 2px 0 #3b2f2f; transition: transform .2s cubic-bezier(.3,1.6,.5,1); z-index: 2; }
.ent-emote::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -4px; border: 4px solid transparent; border-top-color: #3b2f2f; }
.ent-emote.show { transform: translateX(-50%) scale(1); animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { margin-top: -3px; } }
/* 걸을 때 먼지 */
.dust { position: absolute; bottom: 2px; left: 50%; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.08); opacity: 0; }
.ent.left .dust { margin-left: -18px; }
.ent.moving .dust { animation: dust .6s ease-out infinite; }
@keyframes dust { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: translate(-6px, -6px) scale(1.4); } }
.ent.left.moving .dust { animation-name: dustL; }
@keyframes dustL { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: translate(6px, -6px) scale(1.4); } }
.map-wrap { background: #cdeebd; }
.hearts { display: flex; gap: 2px; justify-content: center; }
.hearts img { width: 18px; animation: rise 1.8s ease-out forwards; }
.hearts img:nth-child(2) { animation-delay: .15s; } .hearts img:nth-child(3) { animation-delay: .3s; } .hearts img:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
.flag { display: block; width: 2px; height: 22px; background: #5b5f6b; position: relative; }
.flag::after { content: ""; position: absolute; left: 2px; top: 0; width: 14px; height: 9px; background: #ff6b8a; }
/* 장소 핀: 발바닥 = 반려동물 동반 가능 */
.pin { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); display: grid; place-items: center; }
.pin > * { transform: rotate(45deg); }
.pin img { width: 17px; height: 15px; }
.pin.poi { width: 28px; height: 28px; border-width: 2px; }
.pin.poi span { font-size: 13px; }
.pin.mine::before { content: "✓"; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: #ffd43b; color: #5c3b00; font-size: 9px; font-weight: 900; display: grid; place-items: center; transform: rotate(45deg); }
.pin.big { width: 54px; height: 54px; flex: none; }
.pin.big img { width: 26px; height: 23px; }
.pin.big span { font-size: 22px; }
.geo-ask { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.geo-ask h3 { margin: 4px 0 0; font-size: 19px; }
.geo-ask p { margin: 0 0 6px; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.geo-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 24px; background: linear-gradient(140deg, #5cc0ff, #2f96ec); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(56,168,245,.35); }
.geo-ico img { width: 45px; height: 40px; }
.place-sheet { display: flex; flex-direction: column; gap: 10px; }
.ps-head { display: flex; gap: 14px; align-items: center; padding-left: 4px; }
.ps-head h3 { margin: 0; font-size: 19px; }
.ps-head p { margin: 3px 0 0; color: var(--sub); font-size: 13px; }
.ps-row { margin: 0; font-size: 14px; line-height: 1.5; }
.ps-row b { display: inline-block; min-width: 92px; color: var(--sub); font-size: 12.5px; }
.ps-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; }
.ps-pet { background: #f3fbf5; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ps-row a { color: var(--pri-d); font-weight: 700; }
.map-ctrl, .map-card { z-index: 1000; }
.pill.live { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); padding: 7px 12px; border-radius: 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.pill.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }
.pill.live b { color: var(--ok); }
.map-ctrl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-ctrl button { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 20px; font-weight: 700; display: grid; place-items: center; }
.map-ctrl svg { width: 22px; height: 22px; color: var(--pri); }
.map-card { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 10px; }
.mc-match { display: flex; align-items: center; gap: 10px; }
.mc-match img { width: 46px; height: 46px; border-radius: 14px; background: #f1f6fb; padding: 3px; }
.mc-match div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mc-match small { font-size: 11.5px; color: var(--sub); }
.mc-match b { font-size: 15px; }
.mc-match span { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.walk-stats.big { grid-template-columns: repeat(3, 1fr); margin: 6px 0; }
.walk-stats div { display: flex; flex-direction: column; gap: 2px; }
.walk-stats b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.walk-stats.big b { font-size: 22px; color: var(--pri-d); }
.walk-stats small { font-size: 11.5px; color: var(--sub); }
.map-hint { margin: 0; text-align: center; font-size: 12px; color: var(--sub); }
.walk-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.walk-done img { width: 110px; height: 110px; border-radius: 50%; background: #eef5fc; object-fit: contain; }
.walk-done h3 { margin: 0; font-size: 20px; }
.walk-done p { margin: 0 0 6px; color: var(--sub); font-size: 14px; }
.rec-intro { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(120deg, #e2f2ff, #f3ecff); box-shadow: none; }
.rec-intro img { width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: contain; }
.rec-intro div { display: flex; flex-direction: column; gap: 2px; }
.rec-intro small { font-size: 12px; color: var(--sub); }
.mate-card, .friend { display: flex; gap: 12px; padding: 12px; align-items: center; cursor: pointer; }
.mc-ava { position: relative; width: 58px; height: 58px; border-radius: 18px; background: #f1f6fb; flex: none; display: grid; place-items: center; }
.mc-ava img { width: 100%; height: 100%; border-radius: inherit; }
.mc-ava img.dot-badge, .ms-ava img.dot-badge { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 9px; background: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); object-fit: contain; }
.live-dot { position: absolute; right: -2px; top: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 3px solid #fff; animation: blink 1.4s infinite; }
.mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mc-name { display: flex; align-items: center; gap: 6px; }
.mc-info b { font-size: 15px; }
.mc-info b small { font-weight: 500; color: var(--sub); font-size: 12.5px; }
.mc-info > small { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-info > small.on { color: #2b8a3e; font-weight: 700; }
.mc-info .tags { margin-top: 3px; }
.mc-info .tag { font-size: 11px; padding: 2px 8px; }
.score { font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #ff8fab, #ff6b8a); padding: 2px 8px; border-radius: 10px; }
.mc-act { flex: none; align-self: center; }
.f-act { display: flex; gap: 2px; align-items: center; }
.icon-btn.muted { opacity: .5; }
.notify-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.notify-card div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notify-card small { color: var(--sub); font-size: 12px; }
.mate-sheet { display: flex; flex-direction: column; gap: 12px; }
.ms-top { display: flex; gap: 14px; align-items: center; }
.ms-ava { position: relative; width: 92px; height: 92px; border-radius: 26px; background: #f1f6fb; flex: none; display: grid; place-items: center; }
.ms-ava img { width: 100%; height: 100%; border-radius: inherit; }
.ms-ava img.dot-badge { width: 34px; height: 34px; }
.ms-ava .live { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.ms-top h3 { margin: 0; font-size: 20px; }
.ms-top h3 small { font-size: 13px; color: var(--sub); font-weight: 600; }
.ms-top p { margin: 3px 0 0; font-size: 13px; color: var(--sub); }
.ms-top .match b { color: #ff4d6d; font-size: 16px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); background: #f6f8fa; border-radius: 14px; padding: 10px 0; text-align: center; }
.kv div { display: flex; flex-direction: column; gap: 3px; }
.kv small { font-size: 11.5px; color: var(--sub); }
.kv b { font-size: 14px; }
.kv .dots { color: #ffa94d; letter-spacing: -1px; font-size: 12px; }
.ms-style { margin: 0; font-size: 14px; }

/* ===== AI 케어 ===== */
.care { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.care-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px 4px; flex: none; }
.care-top .bot { width: 44px; height: 41px; }
.care-top div { display: flex; flex-direction: column; }
.care-top small { color: var(--sub); font-size: 12px; }
.care-modes { margin: 8px 12px; flex: none; }
.chat { flex: 1; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 12px; background: #f7f9fb; -webkit-overflow-scrolling: touch; }
.disclaimer { margin: 0 auto 4px; font-size: 11.5px; color: var(--sub); background: #fff7e6; border-radius: 10px; padding: 6px 10px; text-align: center; }
.msg { display: flex; gap: 8px; max-width: 88%; }
.msg p { margin: 0; padding: 10px 13px; border-radius: 18px; font-size: 14px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.msg.bot p { background: #fff; border-top-left-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.msg.bot.urgent p { background: #fff1f3; border: 1.5px solid #ffc2cd; }
.msg.bot .av { width: 32px; height: 30px; flex: none; margin-top: 2px; }
.msg.me { align-self: flex-end; flex-direction: column; align-items: flex-end; }
.msg.me p { background: #ffe58f; border-top-right-radius: 6px; }
.msg.me img { width: 160px; border-radius: 16px; }
.msg-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg-chips button, .quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: left; }
.msg-chips button:active, .quick button:active { background: #eaf5ff; }
.msg.typing p { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #adb5bd; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; flex: none; scrollbar-width: none; border-top: 1px solid var(--line); }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; white-space: nowrap; border-radius: 16px; }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 12px 10px; flex: none; background: #fff; }
.composer input { flex: 1; height: 44px; border-radius: 22px; padding: 0 16px; background: #f4f6f9; border-color: transparent; }
.composer .att { width: 40px; height: 40px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; font-size: 22px; color: var(--sub); flex: none; cursor: pointer; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; flex: none; }
.composer .send svg { width: 20px; height: 20px; stroke-width: 2.6; }
.composer.inline { padding: 8px 0 0; }

/* ===== 간식 · 장터 · 알림 ===== */
.treats .danger { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff8f8; box-shadow: none; border: 1.5px solid #ffe0e0; }
.recipes { display: flex; flex-direction: column; gap: 10px; }
.recipe { display: flex; align-items: center; gap: 14px; padding: 12px; text-align: left; }
.r-emoji { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; flex: none; }
.recipe div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.recipe small { color: var(--sub); font-size: 12px; }
.lv { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--pri-d); background: var(--pri-l); padding: 2px 8px; border-radius: 8px; }
.recipe-detail h3 { margin: 4px 0 0; font-size: 20px; }
.recipe-detail h4 { margin: 14px 0 6px; }
.rd-hero { height: 120px; border-radius: 20px; display: grid; place-items: center; font-size: 64px; }
.meta { color: var(--sub); font-size: 13px; margin: 4px 0 0; }
.ings { display: flex; flex-direction: column; gap: 8px; }
.ings .check { justify-content: flex-start; color: var(--ink); font-weight: 500; }
.recipe-detail ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.tip { background: #fff9db; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 14px 0 10px; }
.market { padding-bottom: 90px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.mitem { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.m-img { position: relative; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 52px; overflow: hidden; margin-bottom: 4px; }
.m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-img em { position: absolute; right: 8px; bottom: 6px; color: #ff4d6d; font-style: normal; font-size: 18px; }
.mitem b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; font-size: 15px; }
.price.free { color: #2b8a3e; }
.mitem small { font-size: 11.5px; color: var(--mute); }
.fab { position: fixed; z-index: 25; right: max(16px, calc(50% - 224px)); bottom: calc(var(--tab) + var(--sb) + 16px); height: 50px; padding: 0 20px; border-radius: 25px; background: var(--pri); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(56,168,245,.4); }
.m-detail { display: flex; flex-direction: column; gap: 6px; }
.m-detail .tag { align-self: flex-start; margin-top: 6px; }
.m-detail h3 { margin: 0; font-size: 19px; }
.m-detail .price { margin: 0; font-size: 20px; }
.md-hero { position: relative; height: 200px; border-radius: 20px; display: grid; place-items: center; font-size: 80px; overflow: hidden; }
.md-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desc { font-size: 14px; line-height: 1.6; margin: 6px 0 10px; }
.emo-row { display: flex; gap: 6px; flex-wrap: wrap; }
.emo { width: 44px; height: 44px; border-radius: 12px; background: #f4f6f9; font-size: 22px; display: grid; place-items: center; border: 2px solid transparent; cursor: pointer; }
.emo.on { border-color: var(--pri); background: #eaf5ff; }
.notifs { gap: 6px; }
.notif { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; background: #fff; }
.notif.unread { background: #eaf5ff; }
.notif img { width: 44px; height: 44px; border-radius: 14px; background: #f1f6fb; object-fit: contain; flex: none; }
.notif div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif b { font-size: 14px; }
.notif span { font-size: 13px; color: #4b5563; }
.notif small { font-size: 11.5px; color: var(--mute); }

/* ===== 시작 ===== */
.start { padding: calc(var(--st) + 28px) 22px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 100dvh; background: linear-gradient(180deg, #eaf6ff, #f4f6f9 60%); }
.st-hero { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.st-hero img { width: 100%; display: block; }
.st-logo { font-family: "Press Start 2P", monospace; color: var(--pri); text-align: center; margin: 10px 0 0; font-size: 36px; letter-spacing: 4px; text-shadow: 4px 4px 0 #cde9fd; }
.st-sub { text-align: center; margin: 0; color: var(--sub); line-height: 1.6; }
.st-sub b { color: var(--ink); }
.st-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.st-feats div { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.st-feats span { font-size: 26px; }
.st-feats b { font-size: 14.5px; }
.st-feats small { font-size: 12px; color: var(--sub); line-height: 1.4; }

@media (min-width: 481px) {
  .sheet { border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================
   아띠 테마 v2 — 귀엽고 통일감 있게 (크림 · 코랄 · 파스텔, 둥근 Jua 폰트)
   ================================================================ */
html, body { background: #f6ecdf; }
#app { background: var(--bg); box-shadow: 0 0 60px rgba(120,80,50,.08); }
h1, h2, h3, .av-h, .sheet-title, .opt-h, .sec-h b, .rc-top, .st-logo, .ms-top h3, .pf-info h2, .post header b, .walk-stats b, .pf-stats b, .price, .notif b, .mc-info b, .recipe b, .ps-head h3 { font-family: var(--font-cute); font-weight: 400; letter-spacing: .2px; }

/* 헤더 */
.topbar { background: rgba(255,248,239,.92); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topbar h1 { font-size: 20px; }
.logo span { font-family: var(--font-cute); font-size: 24px; color: var(--pri); text-shadow: none; letter-spacing: 1px; }
.logo span::before { content: "🐾"; font-size: 15px; margin-right: 3px; vertical-align: 3px; }
.logo small { color: var(--mute); font-family: var(--font-cute); font-weight: 400; }
.icon-btn { border-radius: 14px; }
.icon-btn:active { background: var(--pri-l); }
.badge { background: var(--pri); }

/* 떠 있는 탭바 */
.tabbar { bottom: calc(8px + var(--sb)); width: calc(100% - 20px); max-width: 460px; height: var(--tab); padding-bottom: 0; border: 0; border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(120,80,50,.15); }
main { padding-bottom: calc(var(--tab) + var(--sb) + 28px); }
main.full { height: calc(100dvh - var(--hdr) - var(--st) - var(--tab) - var(--sb) - 16px); }
.tabbar a { font-family: var(--font-cute); font-weight: 400; font-size: 12px; color: var(--mute); position: relative; }
.tabbar a.on { color: var(--pri); }
.tabbar a.on:not(.tab-center)::before { content: ""; position: absolute; top: 8px; width: 44px; height: 32px; border-radius: 14px; background: var(--pri-l); z-index: -1; }
.tab-center i { background: linear-gradient(140deg, #ffab7a, #ff7a8a); box-shadow: 0 6px 16px rgba(255,122,110,.45), inset 0 -3px 0 rgba(0,0,0,.1); border-radius: 20px; }
.tabbar a.tab-center.on span { color: var(--pri); }

/* 버튼: 말랑하고 통통하게 */
.btn { font-family: var(--font-cute); font-weight: 400; font-size: 16px; border-radius: 18px; box-shadow: var(--shadow-pop); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.lg { font-size: 17.5px; border-radius: 20px; }
.btn.sm { font-size: 13.5px; border-radius: 13px; }
.btn.pri { background: linear-gradient(180deg, #ff9a76, var(--pri)); box-shadow: 0 3px 0 #e2643f, 0 8px 16px rgba(255,138,101,.25); }
.btn.sky { background: var(--sky-l); color: #2d86cf; box-shadow: 0 3px 0 #c7e3fa; }
.btn.gray { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line), inset 0 0 0 1.5px var(--line); }
.btn.ok { background: #e3f7ec; color: #2c9a62; box-shadow: 0 3px 0 #c6ecd7; }
.btn.danger { background: linear-gradient(180deg, #ff8597, var(--danger)); box-shadow: 0 3px 0 #e04f66; }
.btn.link { box-shadow: none; font-family: Pretendard, sans-serif; }

/* 카드 · 칩 · 입력 */
.card { border-radius: var(--r); box-shadow: var(--shadow); border: 1.5px solid #fbf1e6; }
.chip { border-radius: 16px; border-color: var(--line); color: var(--sub); background: #fff; font-family: var(--font-cute); font-weight: 400; font-size: 14px; }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; box-shadow: 0 3px 0 #e2643f; }
.seg { background: #f5e9dc; border-radius: 18px; }
.seg > * { font-family: var(--font-cute); font-weight: 400; font-size: 14.5px; border-radius: 14px; }
.seg > .on { color: var(--pri-d); box-shadow: 0 2px 0 var(--line); }
.seg b { color: var(--pri); }
.tag { border-radius: 10px; background: #f8efe5; color: #8a6f5c; }
.tag.c0 { background: #ffe4ec; color: #d6457a; }
.tag.c1 { background: #def6e8; color: #2c9a62; }
.tag.c2 { background: #e3f3ff; color: #2d86cf; }
input:not([type]), input[type=number], input[type=text], textarea { border-radius: 16px; border-color: var(--line); background: #fffdfa; }
input:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-l); }
.tg input:checked + i { background: var(--pri); }
.check input, .range input { accent-color: var(--pri); }
.sheet { border-radius: 28px 28px 0 0; background: #fffdf9; }
.sheet-handle { background-color: #ead9c7; }
.toast { background: rgba(58,46,42,.94); border-radius: 18px; }
.toast button { color: var(--butter); }
.push { border-radius: 22px; }
.push img { background: var(--pri-l); }

/* 피드: 둥근 카드형 게시물 */
.stories { background: transparent; padding: 14px 16px 6px; gap: 14px; }
.story { width: 68px; }
.story .ring { width: 68px; height: 68px; padding: 3px; background: linear-gradient(135deg, #ffd36b, #ff8a65 50%, #ff7aa8); }
.story.seen .ring { background: #e7dccf; }
.story img { border: 3px solid var(--bg); object-fit: cover; }
.story small { font-family: var(--font-cute); font-size: 12.5px; color: var(--ink); }
.story.me .ring { background: #fff; border: 2px dashed #e5cfb8; padding: 2px; }
.story.me.has .ring { border: 0; padding: 3px; background: linear-gradient(135deg, #ffd36b, #ff8a65 50%, #ff7aa8); }
.story.me i { background: var(--pri); border-color: var(--bg); width: 24px; height: 24px; font-size: 16px; }
.shortcuts { background: transparent; border: 0; padding: 4px 16px 6px; }
.shortcuts a { background: #fff; border-radius: 16px; box-shadow: 0 2px 0 var(--line); font-family: var(--font-cute); font-weight: 400; font-size: 14px; }
.live-banner { border-radius: 20px; background: linear-gradient(120deg, #e8f8ef, #fff); }
#posts { gap: 16px; padding: 14px 12px; }
.post { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid #fbf1e6; }
.post-media { margin: 0 10px; border-radius: 20px; }
.post header { padding: 12px 14px 10px; }
.ava { object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px #ffd9c7; }
.post-actions button.on[data-act=like] { color: #ff6b8a; }
.post-text .ht { color: var(--pri-d); }
.walk-badge { border-radius: 12px; background: rgba(58,46,42,.7); }

/* 프로필 */
.pf-cover { border-radius: 26px; }
.pf-ava { background: conic-gradient(from 200deg, #ffd36b, #ff8a65, #ff7aa8, #ffd36b); }
.pf-ava img { border-color: var(--bg); }
.pf-menu span { box-shadow: inset 0 -3px 0 rgba(0,0,0,.05), 0 3px 8px rgba(120,80,50,.08); }
.pf-menu small { font-family: var(--font-cute); font-weight: 400; font-size: 12.5px; }
.pet-card { border-radius: 22px; border: 1.5px solid #fbf1e6; }
.pet-card b { font-family: var(--font-cute); font-weight: 400; font-size: 15px; }
.pc-img > img:first-child { object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px #ffd9c7; }
.pf-tabs { background: transparent; border-color: var(--line); }
.pf-tabs a.on { color: var(--pri); border-color: var(--pri); }
.pgrid { gap: 4px; margin: 6px -8px 0; }
.pgrid button { border-radius: 14px; }
.sec-h a { color: var(--pri); }

/* 도트 만들기 · 산책 · 케어 포인트 컬러 통일 */
.steps i.on { background: var(--pri); }
.steps i.done { background: #ffc4ae; }
.species { border-radius: 24px; border: 2.5px solid #fbf1e6; }
.species.on { border-color: var(--pri); background: #fff4ee; }
.species .chk { background: var(--pri); }
.species span { font-family: var(--font-cute); font-weight: 400; font-size: 17px; }
.slot.active { border-color: var(--pri); background: #fff4ee; }
.slot-now b { color: var(--pri); }
.acc.on, .ed-tools button.on { border-color: var(--pri); background: #fff4ee; color: var(--pri-d); }
.sw.on { box-shadow: 0 0 0 2.5px var(--pri); }
.progress { background: #f5e9dc; }
.progress i { background: linear-gradient(90deg, #ffc4ae, var(--pri)); }
.progress span { color: #7a3a22; }
.result-card, .opt { border-radius: 24px; border: 1.5px solid #fbf1e6; }
.ai-badge { background: var(--pri-l); color: var(--pri-d); }
.map-card { border-radius: 26px; }
.map-ctrl button { border-radius: 14px; box-shadow: 0 3px 0 var(--line), var(--shadow); }
.map-ctrl svg { color: var(--pri); }
.map-ctrl button.on { background: var(--pri-l); }
.pill.live { border-radius: 16px; font-family: var(--font-cute); font-weight: 400; }
.map-filters .chip { box-shadow: 0 3px 8px rgba(120,80,50,.12); }
.map-filters .chip.on em { color: #fff3c4; }
.ent.me .ent-label { background: var(--pri); }
.score { background: linear-gradient(90deg, #ffb27a, #ff7aa8); }
.rec-intro { background: linear-gradient(120deg, #fff1e6, #ffeef4); border: 0; }
.mc-ava { border-radius: 20px; background: #fff1e6; }
.care { background: var(--bg); }
.chat { background: #fffaf3; }
.msg.bot p { border-radius: 20px 20px 20px 6px; }
.msg.me p { background: #ffe1d3; border-radius: 20px 20px 6px 20px; }
.msg-chips button, .quick button { border-radius: 16px; border-color: var(--line); font-family: var(--font-cute); font-weight: 400; font-size: 14px; }
.composer .send { background: var(--pri); }
.disclaimer { background: #fff3d6; }
.notif.unread { background: #fff1e8; }
.r-emoji, .m-img { border-radius: 20px; }
.fab { background: linear-gradient(180deg, #ff9a76, var(--pri)); box-shadow: 0 3px 0 #e2643f, 0 10px 20px rgba(255,138,101,.35); font-family: var(--font-cute); font-weight: 400; font-size: 16px; bottom: calc(var(--tab) + var(--sb) + 22px); }
.geo-ico { background: linear-gradient(140deg, #ffab7a, #ff7a8a); box-shadow: 0 8px 20px rgba(255,122,110,.35); }
.start { background: linear-gradient(180deg, #ffeedd, var(--bg) 60%); }
.st-logo { font-family: var(--font-cute); color: var(--pri); text-shadow: 3px 3px 0 #ffd9c7; font-size: 52px; letter-spacing: 6px; }
.st-feats div { border-radius: 22px; }
.st-feats b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }

/* ===== 스토리 보기 ===== */
.sv { position: fixed; inset: 0; z-index: 3000; background: #111; display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; max-width: 480px; margin: 0 auto; }
.sv.on { opacity: 1; }
.sv-bars { position: absolute; top: calc(var(--st) + 10px); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; width: 0; }
.sv header { position: absolute; top: calc(var(--st) + 20px); left: 12px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 3; color: #fff; }
.sv header img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.sv header b { font-family: var(--font-cute); font-weight: 400; font-size: 15px; }
.sv header small { opacity: .75; font-size: 12px; }
.sv-x { margin-left: auto; color: #fff; font-size: 20px; width: 40px; height: 40px; }
.sv-media { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 0 0 20px 20px; user-select: none; }
.sv-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-text { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 16px; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--font-cute); font-size: 18px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.sv-tap { position: absolute; top: 80px; bottom: 90px; width: 33%; z-index: 2; }
.sv-tap.l { left: 0; } .sv-tap.r { right: 0; }
.sv footer { display: flex; gap: 10px; align-items: center; padding: 12px 14px calc(14px + var(--sb)); }
.sv footer input { flex: 1; height: 44px; border-radius: 22px; background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; padding: 0 16px; }
.sv footer input::placeholder { color: rgba(255,255,255,.7); }
.sv-heart { color: #fff; font-size: 28px; width: 44px; }
.sv-heart.on { color: #ff6b8a; animation: pop .4s; }
.sv-btn { flex: 1; height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); color: #fff; font-family: var(--font-cute); font-size: 15px; }
.story-new { display: flex; flex-direction: column; gap: 12px; }
.sn-prev { position: relative; aspect-ratio: 9 / 14; max-height: 52dvh; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #222; }
.sn-prev img { width: 100%; height: 100%; object-fit: cover; }
.sn-prev p { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 14px; background: rgba(255,255,255,.92); font-family: var(--font-cute); white-space: nowrap; }
.sn-prev p:empty { display: none; }

/* ===== 메시지 탭 아이콘 ===== */
.tab-center i { position: relative; }
.tab-center .dm-ico { width: 28px; height: 28px; color: #fff; stroke-width: 2.4; }
.tab-center .dm-ico .dot { fill: #fff; stroke: none; }
.dm-badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff4d6d; color: #fff; font: 800 11px Pretendard, sans-serif; display: grid; place-items: center; border: 2px solid #fff; }
body.no-tab main.full { height: calc(100dvh - var(--hdr) - var(--st)); }
#toast-root { z-index: 3100; }
#banner-root { z-index: 3200; }

/* ===== 프로필: 도트 만들기 카드 ===== */
.dot-maker { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; padding: 12px 14px; background: linear-gradient(120deg, #fff4d6, #ffe9f0); border: 0; }
.dm-sprites { display: flex; flex: none; }
.dm-sprites img { width: 38px; height: 38px; margin-left: -10px; background: #fff; border-radius: 12px; border: 2px solid #fff; object-fit: contain; box-shadow: 0 2px 6px rgba(120,80,50,.12); }
.dm-sprites img:first-child { margin-left: 0; }
.dot-maker div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dot-maker b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.dot-maker small { font-size: 12px; color: var(--sub); line-height: 1.4; }
.dot-maker .go { font-size: 22px; color: var(--pri); }

/* ===== 메시지함 ===== */
.dm { height: 100%; overflow-y: auto; padding: 10px 14px 24px; }
.dm-search input { height: 44px; border-radius: 22px; padding: 0 18px; background: #fff; }
.dm-online { margin: 14px 0 4px; }
.dm-online h4 { margin: 0 0 8px; font-family: var(--font-cute); font-weight: 400; font-size: 15px; }
.dm-online-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.dm-online-row button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dm-online-row span { position: relative; }
.dm-online-row img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #bfeed5; }
.dm-online-row i { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 3px solid var(--bg); }
.dm-online-row small { font-family: var(--font-cute); font-size: 12.5px; }
.dm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 22px; text-align: left; box-shadow: var(--shadow); border: 1.5px solid #fbf1e6; }
.dm-row.unread { background: #fff6f0; border-color: #ffd9c7; }
.dm-ava { position: relative; flex: none; }
.dm-ava img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #ffd9c7; }
.dm-ava i.on { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 3px solid #fff; }
.dm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dm-mid b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.dm-mid b small { font-family: Pretendard, sans-serif; font-size: 12px; color: var(--sub); }
.dm-mid span { font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row.unread .dm-mid span { color: var(--ink); font-weight: 700; }
.dm-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dm-end small { font-size: 11.5px; color: var(--mute); }
.dm-end em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pri); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.dm-pick { display: flex; flex-direction: column; gap: 6px; }
.dm-pick button { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-align: left; }
.dm-pick button:active { background: var(--pri-l); }
.dm-pick img { width: 46px; height: 46px; border-radius: 50%; }
.dm-pick div { display: flex; flex-direction: column; }
.dm-pick b { font-family: var(--font-cute); font-weight: 400; font-size: 15.5px; }
.dm-pick small { color: var(--sub); font-size: 12px; }

/* ===== 대화방 ===== */
.room { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.room-status { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 12.5px; color: var(--sub); border-bottom: 1px solid var(--line); background: #fffaf4; flex: none; }
.room-status img { width: 24px; height: 24px; border-radius: 50%; }
.room-status b.on { color: var(--ok); }
.room-body { flex: 1; overflow-y: auto; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
.rm-day { align-self: center; margin: 10px 0 6px; font-size: 11.5px; color: var(--sub); background: #f5e9dc; padding: 4px 12px; border-radius: 12px; }
.rm-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.rm-msg.head { margin-top: 8px; }
.rm-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.rm-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
.rm-bub p { margin: 0; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; border-radius: 20px; }
.rm-msg.them .rm-bub p { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 6px rgba(120,80,50,.06); }
.rm-msg.me .rm-bub p { background: linear-gradient(180deg, #ff9a76, var(--pri)); color: #fff; border-bottom-right-radius: 6px; }
.rm-msg time { font-size: 10.5px; color: var(--mute); white-space: nowrap; }
.rm-photo { display: block; max-width: 200px; max-height: 260px; border-radius: 18px; object-fit: cover; }
.rm-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: #fff; min-width: 180px; box-shadow: 0 2px 6px rgba(120,80,50,.08); border: 2px solid var(--pri-l); }
.rm-card b { font-family: var(--font-cute); font-weight: 400; font-size: 15px; }
.rm-card small { color: var(--pri-d); font-size: 12.5px; }
.rm-card.walk { background: #effaf4; border-color: #c6ecd7; }
.rm-card.walk small { color: #2c9a62; }
.rm-bub.typing { display: flex; gap: 4px; padding: 14px; background: #fff; border-radius: 20px; }
.rm-bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: #d6c3b1; animation: dot 1s infinite; }
.rm-bub.typing i:nth-child(2) { animation-delay: .15s; } .rm-bub.typing i:nth-child(3) { animation-delay: .3s; }
.rm-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--sub); }
.rm-empty img { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #ffd9c7; margin-bottom: 6px; }
.rm-empty b { font-family: var(--font-cute); font-weight: 400; font-size: 18px; color: var(--ink); }
.rm-empty small { font-size: 12.5px; }
.rm-empty p { margin: 10px 0 0; }
.room-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; flex: none; scrollbar-width: none; }
.room-quick::-webkit-scrollbar { display: none; }
.room-quick button { flex: none; height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; border: 1.5px solid var(--line); font-family: var(--font-cute); font-size: 14px; }
.room .composer { padding: 8px 12px calc(10px + var(--sb)); background: var(--bg); }
.room .composer input { background: #fff; }

/* ===== 아띠 회원 · 실제 메시지 ===== */
.join-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 14px; border-radius: 22px; text-align: left; background: linear-gradient(120deg, #e3f3ff, #fff1e8); box-shadow: var(--shadow); }
.join-card > span { font-size: 28px; }
.join-card div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.join-card b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.join-card small { font-size: 12px; color: var(--sub); line-height: 1.4; }
.join-card em { font-style: normal; flex: none; padding: 7px 12px; border-radius: 14px; background: var(--pri); color: #fff; font-family: var(--font-cute); font-size: 14px; box-shadow: 0 3px 0 #e2643f; }
.dm-mid .real, .dm-mid .demo, .room-status .demo { margin-left: 6px; font: 700 10px Pretendard, sans-serif; padding: 2px 6px; border-radius: 8px; vertical-align: 2px; }
.dm-mid .real { background: #e3f3ff; color: #2d86cf; }
.dm-mid .demo, .room-status .demo { background: #f3ebe2; color: #a08a78; }
.dm-online-row i.walk { width: auto; height: auto; background: none; border: 0; font-style: normal; font-size: 14px; right: -2px; bottom: -2px; }
.rm-msg time b.read { display: block; color: var(--pri); font-weight: 800; font-size: 10px; text-align: right; }
.signup { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.signup h3 { margin: 4px 0 0; font-size: 19px; }
.signup p { margin: 0 0 4px; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.signup .field { text-align: left; }
.dm-pick h4 { margin: 8px 4px 2px; font-family: var(--font-cute); font-weight: 400; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.dm-pick h4 small { font-family: Pretendard, sans-serif; color: var(--sub); font-size: 12px; }
.pick-join { justify-content: center; color: var(--pri-d); font-family: var(--font-cute); font-size: 15px; background: var(--pri-l) !important; }
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); vertical-align: 2px; }

/* ===== 하단 탭 6개 · 모두 같은 모양 ===== */
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tabbar a { font-size: 11px; }
.tab-ico { position: relative; display: grid; place-items: center; font-style: normal; }
.tabbar .dm-badge, .tabbar .cart-badge { top: -6px; right: -10px; min-width: 18px; height: 18px; font-size: 10px; background: var(--pri); }
.cart-badge { position: absolute; padding: 0 5px; border-radius: 9px; color: #fff; font: 800 10px Pretendard, sans-serif; display: grid; place-items: center; border: 2px solid #fff; background: var(--pri); }

/* ===== 아띠몰 ===== */
.shop { padding: 10px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.sh-banner { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 24px; background: linear-gradient(120deg, #ffe3d3, #ffe9f2 60%, #fff4d6); box-shadow: var(--shadow); }
.sh-banner div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sh-banner small { color: var(--pri-d); font-weight: 700; font-size: 12px; }
.sh-banner b { font-family: var(--font-cute); font-weight: 400; font-size: 21px; line-height: 1.3; }
.sh-banner span { font-size: 12px; color: var(--sub); }
.sh-banner img { width: 86px; height: 86px; border-radius: 24px; background: #fff; object-fit: contain; border: 3px solid #fff; }
.sh-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.sh-cats::-webkit-scrollbar { display: none; }
.sh-cats button { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sh-cats span { width: 54px; height: 54px; border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 3px 0 var(--line); }
.sh-cats small { font-family: var(--font-cute); font-size: 12.5px; color: var(--sub); }
.sh-cats .on span { background: var(--pri-l); box-shadow: 0 0 0 2px var(--pri), 0 3px 0 #ffc4ae; }
.sh-cats .on small { color: var(--pri-d); }
.sh-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 6px; }
.sh-row::-webkit-scrollbar { display: none; }
.sh-row .p-card { flex: none; width: 150px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.p-card { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; background: #fff; border-radius: 22px; padding: 8px 8px 12px; box-shadow: var(--shadow); border: 1.5px solid #fbf1e6; }
.p-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; margin-bottom: 4px; overflow: hidden; }
.p-img b { font-size: 54px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.p-img em { position: absolute; left: 8px; bottom: 7px; font-style: normal; font-family: var(--font-cute); font-size: 11px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.85); color: var(--sub); }
.p-img.big { aspect-ratio: 1.25; border-radius: 26px; }
.p-img.big b { font-size: 110px; }
.p-img.big em { font-size: 13px; left: 14px; bottom: 12px; }
.p-wish { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; font-style: normal; font-size: 16px; color: var(--mute); }
.p-wish.on { color: #ff6b8a; }
.p-brand { font-size: 11.5px; color: var(--mute); font-weight: 600; padding: 0 2px; }
.p-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; padding: 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { font-family: var(--font-cute); font-size: 17px; padding: 0 2px; }
.p-price em { font-style: normal; color: var(--pri); margin-right: 5px; }
.p-rate { font-size: 11.5px; color: #f59f00; font-weight: 700; padding: 0 2px; }
.p-rate small { color: var(--mute); font-weight: 500; }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 2px 0; }
.p-tags i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #f8efe5; color: #8a6f5c; }
.p-tags i:first-child { background: var(--pri-l); color: var(--pri-d); }
.detail { padding-bottom: 100px; }
.pd-info, .pd-opt, .pd-desc, .pd-rev { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pd-info h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.pd-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.pd-price s { color: var(--mute); font-size: 13px; }
.pd-price em { font-style: normal; color: var(--pri); font-family: var(--font-cute); font-size: 20px; }
.pd-price b { font-family: var(--font-cute); font-weight: 400; font-size: 24px; }
.pd-ship { margin: 2px 0 0; font-size: 12.5px; color: var(--sub); }
.pd-opt h4, .pd-desc h4, .pd-rev h4 { margin: 0 0 4px; font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.pd-desc p { margin: 0; font-size: 14px; line-height: 1.6; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty span { flex: 1; font-size: 13px; color: var(--sub); font-weight: 700; }
.qty button { width: 34px; height: 34px; border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--line), inset 0 0 0 1.5px var(--line); font-size: 16px; }
.qty b { min-width: 24px; text-align: center; font-family: var(--font-cute); font-weight: 400; font-size: 17px; }
.qty.sm { margin-top: 4px; gap: 8px; }
.qty.sm button { width: 28px; height: 28px; border-radius: 10px; }
.rev { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rev:first-of-type { border-top: 0; }
.rev img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.rev b { font-size: 12.5px; }
.rev span { display: block; color: #f59f00; font-size: 11px; }
.rev p { margin: 2px 0 0; font-size: 13.5px; }
.pd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + var(--sb) + 18px); width: calc(100% - 28px); max-width: 452px; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(255,253,249,.97); box-shadow: 0 8px 26px rgba(120,80,50,.18); z-index: 25; }
.pd-bar .btn { flex: 1; height: 48px; font-size: 15px; }
.pd-bar .btn.pri { flex: 2; }
.pd-share { width: 48px; border-radius: 16px; background: var(--pri-l); font-size: 20px; flex: none; }
.ci { display: flex; gap: 10px; padding: 10px; align-items: center; }
.ci-img { width: 76px; flex: none; }
.ci-img .p-img { margin: 0; }
.ci-img .p-img b { font-size: 34px; }
.ci-img .p-img em { display: none; }
.ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-info small { color: var(--mute); font-size: 11px; }
.ci-info b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info span { font-size: 12px; color: var(--sub); }
.ci-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; }
.ci-end b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.ci-del { color: var(--mute); font-size: 14px; width: 26px; height: 26px; }
.sum { padding: 14px 16px; }
.sum p { display: flex; justify-content: space-between; margin: 4px 0; font-size: 14px; }
.sum p span { color: var(--sub); }
.sum .total { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.sum .total b { font-family: var(--font-cute); font-weight: 400; font-size: 21px; color: var(--pri-d); }
.free-hint { justify-content: flex-end !important; color: var(--pri-d) !important; font-size: 12px !important; font-weight: 700; }
.demo-note { margin: 0; font-size: 12px; color: #a0703c; background: #fff3d6; border-radius: 12px; padding: 8px 10px; line-height: 1.5; }
.order { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.o-head { display: flex; justify-content: space-between; align-items: center; }
.o-head b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; }
.o-st { font-size: 12px; font-weight: 800; color: var(--pri-d); background: var(--pri-l); padding: 3px 8px; border-radius: 8px; }
.o-item { display: flex; gap: 10px; align-items: center; }
.o-item .p-img { width: 52px; margin: 0; border-radius: 12px; }
.o-item .p-img b { font-size: 26px; } .o-item .p-img em { display: none; }
.o-item div { display: flex; flex-direction: column; min-width: 0; }
.o-item b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-item small { color: var(--sub); font-size: 12px; }
.o-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.o-foot small { color: var(--mute); }
.o-foot b { font-family: var(--font-cute); font-weight: 400; font-size: 18px; }
.o-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.o-steps i { font-style: normal; text-align: center; font-size: 11px; padding: 5px 0; border-radius: 8px; background: #f5ece2; color: var(--mute); font-weight: 700; }
.o-steps i.on { background: var(--pri); color: #fff; }

.tabbar { grid-template-columns: repeat(5, 1fr); }
.tabbar a { font-size: 11.5px; }
.care-btn { width: auto; padding: 0 10px; gap: 4px; display: inline-flex; background: #eaf7f0; color: #2c9a62; font-family: var(--font-cute); font-size: 14px; border-radius: 14px; height: 36px; }


/* ===== 로그인 ===== */
.auth { padding: 18px 18px 30px; display: flex; flex-direction: column; gap: 14px; }
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; }
.auth-hero img { width: 96px; height: 96px; border-radius: 30px; background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 2px #ffd9c7, var(--shadow); object-fit: contain; }
.auth-hero h1 { margin: 8px 0 0; font-size: 40px; color: var(--pri); letter-spacing: 4px; text-shadow: 3px 3px 0 #ffd9c7; }
.auth-hero p { margin: 0; color: var(--sub); font-size: 13.5px; }
.auth-form { padding: 16px; }
.auth-err { margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.login-btn { height: 34px; padding: 0 12px; font-size: 14px; }

input[type=password] { width: 100%; border: 1.5px solid var(--line); background: #fffdfa; border-radius: 16px; padding: 12px 14px; font-size: 16px; outline: none; }
input[type=password]:focus { border-color: var(--pri); box-shadow: 0 0 0 4px var(--pri-l); }


/* ===== 인스타 DM 기능 ===== */
.room .composer .send.heart { background: transparent; font-size: 24px; box-shadow: none; }
.rm-bub { position: relative; }
.rm-bub.pop { animation: pop .35s; }
.rm-heart { display: block; font-size: 44px; line-height: 1; padding: 2px 4px; }
.rm-rx { position: absolute; bottom: -12px; right: 8px; background: #fff; border-radius: 12px; padding: 1px 5px; font-size: 13px; box-shadow: 0 2px 6px rgba(120,80,50,.15); border: 1.5px solid var(--bg); }
.rm-msg.them .rm-rx { right: auto; left: 8px; }
.rm-msg:has(.rm-rx) { margin-bottom: 12px; }
.rm-quote { margin-bottom: 4px; padding: 6px 10px; border-radius: 14px; background: rgba(0,0,0,.05); border-left: 3px solid var(--pri); max-width: 220px; }
.rm-msg.me .rm-quote { background: #fff1e8; }
.rm-quote small { display: block; font-size: 10.5px; color: var(--sub); font-weight: 700; }
.rm-quote span { display: block; font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 8px 12px; border-radius: 16px; background: #fff; border-left: 4px solid var(--pri); box-shadow: var(--shadow); flex: none; }
.reply-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reply-bar small { font-size: 11.5px; font-weight: 700; color: var(--pri-d); }
.reply-bar span { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { width: 28px; height: 28px; color: var(--mute); }
.msg-menu { display: flex; flex-direction: column; gap: 6px; }
.mm-react { display: flex; justify-content: space-around; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mm-react button { font-size: 30px; width: 48px; height: 48px; border-radius: 50%; transition: transform .1s; }
.mm-react button:active { transform: scale(1.25); }
.mm-react button.on { background: var(--pri-l); }
.mm-act { display: block; width: 100%; text-align: left; padding: 14px 12px; border-radius: 14px; font-size: 15.5px; font-family: var(--font-cute); }
.mm-act:active { background: var(--pri-l); }
.rm-share { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 18px; background: #fff; border: 2px solid var(--line); max-width: 240px; cursor: pointer; }
.rm-share img, .rm-share .sc-emo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 34px; background: #f8efe5; }
.rm-share div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-share small { font-size: 11px; color: var(--pri-d); font-weight: 700; }
.rm-share b { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.room-info > img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #ffd9c7; }
.room-info h3 { margin: 0; } .room-info > p { margin: 0; color: var(--sub); font-size: 13px; }
.room-info .row2 { width: 100%; }
.room-info h4 { align-self: flex-start; margin: 8px 0 0; font-family: var(--font-cute); font-weight: 400; }
.ri-media { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ri-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.share-pick { display: flex; flex-direction: column; gap: 12px; }
.sp-preview { display: flex; justify-content: center; }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; max-height: 40dvh; overflow-y: auto; }
.sp-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-grid span { position: relative; }
.sp-grid img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.sp-grid i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--pri); color: #fff; font-style: normal; font-size: 12px; display: none; place-items: center; border: 2px solid #fff; }
.sp-grid button.on i { display: grid; }
.sp-grid button.on img { box-shadow: 0 0 0 3px var(--pri); }
.sp-grid small { font-family: var(--font-cute); font-size: 12px; }

.p-img.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-img .p-emo { position: absolute; right: 8px; bottom: 7px; font-style: normal; font-size: 16px; width: 28px; height: 28px; border-radius: 10px; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.p-img.big .p-emo { width: 40px; height: 40px; font-size: 24px; right: 14px; bottom: 12px; border-radius: 14px; }
.o-item .p-img .p-emo, .ci-img .p-img .p-emo { display: none; }


.id-row { display: flex; gap: 8px; align-items: center; }
.id-row input { flex: 1; min-width: 0; }
.id-row .btn { flex: none; height: 46px; }
.id-msg { font-size: 12.5px; font-weight: 700; min-height: 16px; }
.id-msg.ok { color: var(--ok); }
.id-msg.bad { color: var(--danger); }
.id-msg.wait { color: var(--mute); }


/* 아이디(@) 입력 */
.id-row { position: relative; }
.id-row .at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pri); font-weight: 800; font-size: 16px; pointer-events: none; }
.id-row input { padding-left: 32px; }
.id-note { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--pri-d); background: var(--pri-l); padding: 2px 8px; border-radius: 8px; margin-left: 6px; }
.id-info { margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: #fff7ee; border: 1.5px dashed #ffd2bd; font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.id-info b { color: var(--pri-d); }
.id-info small { display: block; margin-top: 4px; color: var(--sub); font-size: 11.5px; }
.handle-at { color: var(--pri-d); font-weight: 700; }

.pk-q { height: 44px; border-radius: 22px; padding: 0 16px; margin-bottom: 4px; }


.opt-tag { font-style: normal; font-weight: 600; font-size: 11px; color: var(--sub); background: #f3ebe2; padding: 2px 7px; border-radius: 8px; margin-left: 4px; }
.field-hint { font-size: 12px; color: var(--sub); }


.save-id { justify-content: flex-start; margin-top: -4px; color: var(--ink); }


/* 위치 동의 거절 안내 */
.geo-warn { margin: 2px 0 0; padding: 10px 12px; border-radius: 14px; background: #fff3e6; color: #a5521f; font-size: 12.5px; line-height: 1.55; text-align: left; }
.geo-block { height: 100%; overflow-y: auto; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.geo-block.wait { justify-content: center; }
.gb-ico { width: 84px; height: 84px; border-radius: 28px; background: linear-gradient(140deg, #ffab7a, #ff7a8a); display: grid; place-items: center; font-size: 40px; box-shadow: 0 8px 20px rgba(255,122,110,.35); }
.geo-block h2 { margin: 6px 0 2px; font-size: 20px; line-height: 1.45; }
.geo-block ul { list-style: none; margin: 4px 0 8px; padding: 14px 16px; width: 100%; background: #fff; border-radius: 20px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--sub); }
.geo-block ul li { text-decoration: line-through; text-decoration-color: rgba(255,107,129,.45); }

.gb-ico.pulse { animation: gbpulse 1.2s ease-in-out infinite; }
@keyframes gbpulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255,122,110,.12), 0 8px 20px rgba(255,122,110,.35); } }
.geo-block ul.tips li { text-decoration: none; color: var(--ink); }


/* 비어 있는 프로필 */
.pf-cover.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: repeating-linear-gradient(45deg, #fff1e6 0 12px, #ffeadb 12px 24px); border: 2px dashed #ffd2bd; color: var(--sub); padding-bottom: 30px; }
.pf-cover.empty span { font-size: 32px; }
.pf-cover.empty small { font-family: var(--font-cute); font-size: 14px; }
.region { margin: 4px 0 0; font-size: 13.5px; color: var(--sub); }
.pf-fill { display: block; width: 100%; margin: 10px 0 2px; padding: 12px; border-radius: 16px; border: 2px dashed #ffd2bd; background: #fffaf5; color: var(--pri-d); font-family: var(--font-cute); font-size: 14.5px; }
.pet-card.add .pc-img { display: grid; place-items: center; border-radius: 50%; background: #fff1e6; border: 2px dashed #ffc4ae; }
.pet-card.add .pc-img b { font-size: 26px; color: var(--pri); font-family: Pretendard, sans-serif; }

/* 산책 지도 검색 바 */
.map-search { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 1002; display: flex; align-items: center; background: #fff; border-radius: 22px; box-shadow: 0 4px 16px rgba(120,80,50,.16); border: 2px solid #fff; }
.map-search:focus-within { border-color: var(--pri); }
.ms-ico { padding: 0 4px 0 14px; font-size: 15px; }
.map-search input { flex: 1; min-width: 0; height: 44px; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 8px !important; font-size: 15px; -webkit-appearance: none; }
.map-search input::-webkit-search-cancel-button { display: none; }
#ms-clear { width: 36px; height: 36px; color: var(--mute); margin-right: 4px; }
.ms-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 50dvh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(120,80,50,.2); padding: 6px; }
.ms-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; }
.ms-list button:active, .ms-list button:hover { background: var(--pri-l); }
.ms-list b { font-weight: 600; font-size: 14.5px; }
.ms-list small { font-size: 11.5px; color: var(--sub); }
.ms-list .ms-more { color: var(--pri-d); font-family: var(--font-cute); font-size: 15px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.ms-wait { margin: 0; padding: 12px; font-size: 13px; color: var(--sub); }
.map-top { top: 64px; }
.map-ctrl { top: 64px; }
.map-research { top: 196px; }
.search-pin { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.search-pin span { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.search-pin i { font-style: normal; font-size: 30px; line-height: 1; margin-top: 2px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); animation: pinDrop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pinDrop { from { transform: translateY(-24px); opacity: 0; } }

/* 이 화면에서 산책 중 (실시간) */
.wk-strip { pointer-events: auto; width: calc(100% + 48px); max-width: calc(100vw - 24px); background: rgba(255,255,255,.96); border-radius: 18px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(120,80,50,.14); display: flex; flex-direction: column; gap: 6px; }
.ws-title { font-family: var(--font-cute); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.ws-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }
.ws-title b { color: var(--ok); font-weight: 400; }
.ws-title.empty { color: var(--sub); font-family: Pretendard, sans-serif; font-size: 12.5px; }
.ws-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ws-row::-webkit-scrollbar { display: none; }
.ws-row button { flex: none; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 16px; background: #fff6ef; border: 1.5px solid #ffe2d2; font-size: 12.5px; font-weight: 700; animation: pop .3s; }
.ws-row button.member { background: #f1ecff; border-color: #ddd1ff; }
.ws-row img { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain; }
.ws-row em { font-style: normal; font-size: 10px; font-weight: 800; color: #7b5cff; background: #fff; border-radius: 6px; padding: 1px 5px; }
.ws-row em.f { color: var(--ok); }
.ent.member .ent-label { background: #7b5cff; color: #fff; }
.share-walk { justify-content: flex-start; font-size: 12.5px; color: var(--sub); font-weight: 600; text-align: left; line-height: 1.4; }
.share-walk small { color: var(--mute); }
.map-research { top: 230px; }

/* 비밀번호 보기 버튼 */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: var(--sub); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pw-eye:hover, .pw-eye:focus-visible { background: rgba(255, 140, 90, .12); color: var(--pri, #ff7a4d); outline: none; }
.pw-eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .eye-off { display: none; }
.pw-eye.on { color: var(--pri, #ff7a4d); }
.pw-eye.on .eye-open { display: none; }
.pw-eye.on .eye-off { display: block; }

/* 비밀번호 확인 일치 표시 */
.pw-wrap.match input { border-color: var(--ok); }
.pw-wrap.mismatch input { border-color: var(--danger); background: #fff6f5; }
#au-pwmsg:empty { display: none; }

/* 산책 지도 오른쪽 아이콘 설명 말풍선 */
.map-ctrl button[data-tip] { position: relative; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.map-ctrl button[data-tip]::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; padding: 7px 11px; border-radius: 12px; background: #3d2c25; color: #fff;
  font: 700 12.5px/1.2 Pretendard, system-ui, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.map-ctrl button[data-tip]::before {
  content: ''; position: absolute; right: calc(100% + 4px); top: 50%; transform: translate(6px, -50%);
  border: 6px solid transparent; border-left-color: #3d2c25; border-right-width: 0;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.map-ctrl button.tip::after, .map-ctrl button.tip::before { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) {
  .map-ctrl button[data-tip]:hover::after, .map-ctrl button[data-tip]:hover::before,
  .map-ctrl button[data-tip]:focus-visible::after, .map-ctrl button[data-tip]:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
}

/* ===== 산책 지도 단순화 ===== */
/* 위: 검색 → 필터(가로 전체) → 산책 중 한 줄 / 오른쪽 버튼은 필터 아래에서 시작해 겹치지 않게 */
.map-top { left: 12px; right: 12px; top: 64px; gap: 8px; }
.map-filters { margin: 0 -12px; padding: 0 12px 2px; width: calc(100% + 24px); }
.map-ctrl { top: 110px; right: 12px; gap: 8px; }
.map-ctrl .zoom-btn { font-size: 18px; }
@media (hover: none) { .map-ctrl .zoom-btn { display: none; } }
.map-research { top: 160px; }

/* 이 화면에서 산책 중: 얇은 한 줄 */
.wk-strip { flex-direction: row; align-items: center; gap: 6px; width: auto; max-width: calc(100% - 52px); padding: 4px 6px 4px 10px; border-radius: 20px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.wk-strip::-webkit-scrollbar { display: none; }
.wk-strip[hidden] { display: none; }
.wk-strip .ws-title { flex: none; font-size: 12.5px; white-space: nowrap; }
.wk-strip button { flex: none; display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 14px; background: #fff6ef; font-size: 12px; font-weight: 700; white-space: nowrap; animation: pop .3s; }
.wk-strip button.member { background: #f1ecff; }
.wk-strip button.friend { background: #e9f8ee; }
.wk-strip img { width: 22px; height: 22px; border-radius: 50%; background: #fff; object-fit: contain; }

/* 지도 설정 창 */
.map-layers { position: absolute; z-index: 1003; top: 110px; right: 62px; width: 236px; background: #fff; border-radius: 20px; padding: 8px; box-shadow: 0 10px 30px rgba(120,80,50,.22); display: flex; flex-direction: column; gap: 2px; animation: pop .18s; }
.map-layers[hidden] { display: none; }
.ml-h { font-family: var(--font-cute); font-weight: 400; font-size: 14px; padding: 4px 8px 6px; color: var(--sub); }
.ml-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border-radius: 12px; font-size: 14px; font-weight: 600; text-align: left; color: var(--ink); background: none; }
.ml-row:hover, .ml-row:active { background: #fff6ef; }
.ml-row span { font-size: 18px; width: 22px; text-align: center; }
.ml-row.act { color: var(--pri-d, #e8643a); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }

/* 켜기/끄기 스위치 */
.sw { margin-left: auto; flex: none; position: relative; width: 36px; height: 21px; border-radius: 11px; background: #e3dad3; transition: background .15s; }
.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.ml-row.on .sw, .share-walk input:checked + .sw { background: var(--pri); }
.ml-row.on .sw::after, .share-walk input:checked + .sw::after { transform: translateX(15px); }

/* 아래 카드: 시작 버튼 + 한 줄 설정 */
.map-card { gap: 8px; padding: 10px; }
.share-walk { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 12.5px; color: var(--sub); font-weight: 600; cursor: pointer; }
.share-walk input { position: absolute; opacity: 0; pointer-events: none; }
.share-walk .sw { margin-left: 0; order: 0; }
.share-walk small { color: var(--mute); font-weight: 500; }
.map-top .map-filters { order: -1; }
