/* social-hub.css — 11/7 대표 결정(A안 + B 지름길): 위 한 줄 · 아래 한 줄 · 함께 창 하나 · 알림 하나 · 캐릭터 꽃잎 메뉴 · 큰 이름표/말풍선.
 * world3d.html 맨 끝에서 읽는다(앞의 !important 규칙을 덮기 위해 선택자를 한 단계 더 구체적으로). 색: 흰 바탕 · #e3e9e7 테두리 · 민트 #6EEAC2→#2ADCCA · 글자 #2c2419 */
:root{--sh-mint:linear-gradient(135deg,#6EEAC2,#2ADCCA);--sh-ink:#2c2419;--sh-line:#e3e9e7;--sh-soft:#F1F5F4;--sh-shadow:0 4px 14px rgba(30,50,45,.14);--sh-font:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}

/* ===== 위 한 줄 ===== */
html body.sh-on #peers{display:none!important}
html body.sh-on .hud-tr #cnt,html body.sh-on .hud-tr #to2d,html body.sh-on .hud-tr #set-btn,html body.sh-on .hud-tr #theme,html body.sh-on .hud-tr #logout{display:none!important}
#sh-where{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--sh-line);background:rgba(255,255,255,.94);box-shadow:var(--sh-shadow);font:800 13.5px/1 var(--sh-font);color:var(--sh-ink);cursor:pointer;white-space:nowrap;max-width:min(52vw,320px)}
#sh-where #sh-pl{overflow:hidden;text-overflow:ellipsis;max-width:150px}
#sh-where i{font-style:normal;color:#c3cfcb}#sh-where b{color:#0d8f7f;font-weight:900}
#sh-where:hover{background:#fff}
html body.sh-on .hud-tr .sh-ic{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;position:relative;font-size:19px!important;background:rgba(255,255,255,.94)!important;border:1px solid var(--sh-line)!important;box-shadow:var(--sh-shadow)!important}
#sh-bell.has span{animation:shRing 1.6s ease 2}@keyframes shRing{10%,30%{rotate:-14deg}20%,40%{rotate:14deg}50%{rotate:0deg}}
.sh-badge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ff5a4f;color:#fff;font:900 11px/15px var(--sh-font);text-align:center;border:2px solid #fff}
.sh-badge[hidden]{display:none!important}
#sh-menu-card{position:fixed;z-index:9100;right:12px;top:calc(64px + env(safe-area-inset-top));min-width:200px;padding:6px;border-radius:18px;background:#fff;border:1px solid var(--sh-line);box-shadow:0 12px 30px rgba(30,50,45,.22);display:flex;flex-direction:column;gap:2px;animation:shPop .18s ease}
#sh-menu-card[hidden]{display:none}
#sh-menu-card button{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border:0;border-radius:12px;background:none;font:800 14.5px var(--sh-font);color:var(--sh-ink);cursor:pointer;text-align:left}
#sh-menu-card button:hover,#sh-menu-card button:focus-visible{background:var(--sh-soft)}
#sh-menu-card button span{font-size:18px;width:22px;text-align:center}
@keyframes shPop{from{opacity:0;transform:translateY(-6px) scale(.98)}}

/* ===== 알림: 한 번에 하나(위 가운데) ===== */
html body #db-notes{top:calc(66px + env(safe-area-inset-top))!important;gap:0!important}
html body #db-notes .db-note+.db-note{display:none}
html body .db-note{border-width:1px!important;font-family:var(--sh-font)!important}
.db-bt button.main,.db-wf button.main,.sh-acts button.main,form.sh-dm button.main{background:var(--sh-mint)!important;border-color:transparent!important;color:#05392f!important}

/* ===== 함께 창(탭 3개) ===== */
#db-sheet .db-card{font-family:var(--sh-font)}
#db-sheet .db-hd{display:flex;align-items:center;gap:8px;padding:12px 44px 10px 12px!important}
.sh-grip{display:none;width:44px;height:5px;border-radius:9px;background:#d5dedb;margin:8px auto 0}
.sh-tabs{flex:1;display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--sh-soft)}
.sh-tabs button{flex:1;height:38px;border:0;border-radius:11px;background:none;font:900 13px var(--sh-font);color:#5b6b67;cursor:pointer;white-space:nowrap;padding:0 4px}
.sh-tabs button.on{background:#fff;color:#0b7d6b;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.sh-tabs em{font-style:normal;font-size:11px;font-weight:900;background:#2ADCCA;color:#05392f;border-radius:999px;padding:1px 6px;margin-left:4px}
#db-sheet .db-row{border-bottom:0!important;padding:10px 6px 4px!important}
#db-sheet .db-row img{width:46px!important;height:46px!important}
#db-sheet .db-nm b{font-size:15px!important;color:var(--sh-ink)!important}
.db-tag.new{color:#0b7d6b!important;background:#e7f6f1!important}
.sh-acts{display:flex;gap:6px;padding:4px 6px 12px 62px;border-bottom:1px solid var(--sh-line)}
.sh-acts button{flex:1;height:38px;min-width:0;border-radius:12px;border:0;background:var(--sh-soft);font:900 12.5px var(--sh-font);color:#2c4a44;cursor:pointer;white-space:nowrap;padding:0 4px}
.sh-acts button:hover{filter:brightness(.97)}.sh-acts button:disabled{opacity:.6;cursor:default}
.sh-news{position:relative;padding:10px 8px 10px;border-bottom:1px solid var(--sh-line);font:600 13.5px/1.45 var(--sh-font);color:#5b4428}
.sh-news .db-tx img{width:34px;height:34px;border-radius:50%;object-fit:cover;float:left;margin:0 9px 0 0;background:#eef3f2}
.sh-news b{display:block;color:var(--sh-ink);font-weight:900}.sh-news small{position:absolute;right:8px;top:10px;font-size:11px;color:#9aa8a4;font-weight:700}
.sh-news.mine{background:#f7fbfa;border-radius:12px;border-bottom:0;margin:6px 0}
form.sh-dm{margin:6px 2px 8px;padding:12px;border-radius:16px;background:#f2fbf8;border:1px solid #cdeee4}
form.sh-dm b{display:block;font:900 14px var(--sh-font);color:var(--sh-ink);margin-bottom:8px}
form.sh-dm div{display:flex;gap:6px}form.sh-dm input{flex:1;min-width:0;height:44px;border-radius:999px;border:1px solid var(--sh-line);padding:0 14px;font:600 15px var(--sh-font);background:#fff}
form.sh-dm button{height:44px;padding:0 16px;border-radius:999px;border:0;font:900 14px var(--sh-font);cursor:pointer}
/* (휴대폰: body.sh-m — social-hub.js 가 화면 크기·터치로 판정) */
body.sh-m .sh-grip{display:block}
body.sh-m #db-sheet .db-card{max-height:72vh!important}
body.sh-m .sh-tabs button{font-size:12.5px}

/* ===== 캐릭터를 누르면: 그 사람 둘레에 꽃잎 메뉴 ===== */
html body .w3d .ent .peer-menu,html body.w3d .ent .peer-menu{display:block!important;position:absolute!important;left:0!important;bottom:46px!important;width:0!important;height:0!important;max-width:none!important;translate:none!important;gap:0!important}
.w3d .ent .peer-menu::before{content:"";position:absolute;left:-80px;top:-110px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,transparent 0 40%,rgba(255,255,255,.28) 41% 66%,transparent 67%);pointer-events:none}
html body .peer-menu .pm-chip{position:absolute!important;width:56px!important;height:56px!important;min-width:0!important;min-height:0!important;padding:4px!important;border-radius:50%!important;border:0!important;background:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.2)!important;font:900 11px/1.2 var(--sh-font)!important;white-space:normal!important;word-break:keep-all;display:flex!important;align-items:center;justify-content:center;text-align:center;translate:-50% -50%;animation:shPet .22s cubic-bezier(.2,.9,.3,1.3) both}
html body .peer-menu .pm-chip:nth-child(1){left:-66px;top:-6px;animation-delay:0s}
html body .peer-menu .pm-chip:nth-child(2){left:-56px;top:-66px;animation-delay:.03s}
html body .peer-menu .pm-chip:nth-child(3){left:0px;top:-94px;animation-delay:.06s}
html body .peer-menu .pm-chip:nth-child(4){left:56px;top:-66px;animation-delay:.09s}
html body .peer-menu .pm-chip:nth-child(5){left:66px;top:-6px;animation-delay:.12s;background:var(--sh-mint)!important;color:#05392f!important}
html body .peer-menu .pm-chip:nth-child(6){left:0px;top:40px;width:40px!important;height:40px!important;font-size:15px!important}
html body .peer-menu .pm-chip:hover{filter:brightness(.97);scale:1.05}
@keyframes shPet{from{opacity:0;scale:.4}}

/* ===== 이름표·말풍선 크게(휴대폰에서도 읽히게) ===== */
html body.w3d .ent .nm{font-size:12.5px!important;padding:3px 9px!important;border-radius:999px!important}
html body.w3d .ent .bubble{font-size:14px!important;line-height:1.35!important;padding:7px 12px!important;max-width:240px!important}

/* ===== 휴대폰: 위 한 줄 · 아래 한 줄 ===== */
/* (휴대폰: body.sh-m — social-hub.js 가 화면 크기·터치로 판정) */
html body.sh-on.sh-m .hud-tl{top:calc(10px + env(safe-area-inset-top))!important;left:10px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important}
html body.sh-on.sh-m .hud-tr{top:calc(10px + env(safe-area-inset-top))!important;right:10px!important;display:flex!important;flex-direction:row!important;gap:8px!important}
html body.sh-on.sh-m #me-chip{padding:3px!important;gap:0!important;min-width:0!important}
html body.sh-on.sh-m #me-chip .who{display:none!important}
html body.sh-on.sh-m #me-chip .face,html body.sh-on.sh-m #me-chip .face img{width:40px!important;height:40px!important}
body.sh-m #sh-where{height:40px;font-size:13px;max-width:calc(100vw - 172px)}
body.sh-m #sh-where #sh-pl{max-width:96px}
html body.sh-on.sh-m #fq-chip{top:calc(62px + env(safe-area-inset-top))!important;left:10px!important}
html body.sh-on.sh-m #minimap{top:calc(62px + env(safe-area-inset-top))!important;bottom:auto!important;right:10px!important;width:76px!important;height:76px!important;border-radius:50%!important}
/* 아래 한 줄 */
html body.sh-on.sh-m.w3d #scr-world div#dock{left:10px!important;right:10px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;height:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body.sh-on.sh-m.w3d #scr-world div#dock>.btn{position:relative!important;margin:0!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #chat-btn{flex:1 1 auto!important;order:0;width:auto!important;height:50px!important;min-height:50px!important;border-radius:999px!important;justify-content:flex-start!important;flex-direction:row!important;gap:8px!important;padding:0 16px!important;background:rgba(255,255,255,.94)!important;border:1px solid var(--sh-line)!important;box-shadow:var(--sh-shadow)!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #chat-btn .lbl{display:inline!important;font:700 14px var(--sh-font)!important;color:#7a8a86!important;position:static!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #emote-btn,html body.sh-on.sh-m.w3d #scr-world div#dock #sh-people,html body.sh-on.sh-m.w3d #scr-world div#dock #tea-btn{order:1;flex:0 0 auto!important;width:52px!important;height:52px!important;min-height:52px!important;border-radius:50%!important;padding:0!important;display:inline-grid!important;place-items:center!important;font-size:21px!important;background:rgba(255,255,255,.94)!important;border:1px solid var(--sh-line)!important;box-shadow:var(--sh-shadow)!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #tea-btn[hidden]{display:none!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #sh-people{order:2}
html body.sh-on.sh-m.w3d #scr-world div#dock #emote-btn .lbl,html body.sh-on.sh-m.w3d #scr-world div#dock #sh-people .lbl,html body.sh-on.sh-m.w3d #scr-world div#dock #tea-btn .lbl{position:absolute!important;bottom:-15px!important;left:50%!important;translate:-50% 0!important;font:900 10px var(--sh-font)!important;color:var(--sh-ink)!important;white-space:nowrap;display:block!important;text-shadow:0 0 3px #fff,0 0 3px #fff}
html body.sh-on.sh-m.w3d #scr-world div#dock #lantern-btn{order:3;flex:0 0 auto!important;width:56px!important;height:56px!important;min-height:56px!important;border-radius:50%!important;padding:0!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #emotes{order:-1}
html body.sh-on.sh-m #joy{bottom:calc(124px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-m #place-prompt{bottom:calc(124px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-m.w3d #dock #emotes{bottom:calc(84px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-m #scr-world#scr-world #chatlog#chatlog{top:auto!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;left:10px!important;right:10px!important;width:auto!important;max-height:62px!important;overflow:hidden!important}
html body.sh-on.sh-m #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{bottom:calc(150px + env(safe-area-inset-bottom))!important;max-height:120px!important}
body.sh-m #sh-menu-card{top:calc(60px + env(safe-area-inset-top))}
/* PC: 아래 바에 👥 함께 */
html body.sh-on:not(.sh-m) .hud-tl{display:flex!important;align-items:center!important;gap:10px!important}
html body.sh-on:not(.sh-m) .hud-tr{display:flex!important;gap:8px!important}
html body.sh-on:not(.sh-m) #sh-people .sh-badge{top:-6px;right:-2px}
html body.sh-on:not(.sh-m) #dock #chat-btn{order:0}
html body.sh-on:not(.sh-m) #dock #emote-btn{order:1}
html body.sh-on:not(.sh-m) #dock #tea-btn{order:1}
html body.sh-on:not(.sh-m) #dock #sh-people{order:2}
html body.sh-on:not(.sh-m) #dock #lantern-btn{order:3}
html body.sh-on:not(.sh-m) #dock #emotes{order:-1}

/* 11/7 대표: 누르는 상자(탭 박스)는 불투명하게 — 반투명 흰색·유리 효과를 없애고 꽉 찬 흰 바탕 + 또렷한 테두리 · 그림자 */
html body.sh-on .hud-tr,html body.sh-on .hud-tl{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important}
html body.sh-on #me-chip,html body.sh-on #sh-where,html body.sh-on .hud-tr .sh-ic,html body.sh-on #fq-chip,html body.sh-on #pond-chip,html body.sh-on #minimap,
html body.sh-on.w3d #scr-world div#dock>.btn:not(#lantern-btn),html body.sh-on.w3d #scr-world div#dock #chat-btn,html body.sh-on #place-prompt:not(.btn-primary),
html body.sh-on #dock #emotes .btn,#sh-menu-card,#db-sheet .db-card,html body .db-note{background:#ffffff!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:1.5px solid #d9e2df!important;box-shadow:0 3px 10px rgba(30,50,45,.16)!important}
html body.sh-on #dock{background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body.sh-on:not(.sh-m).w3d #scr-world div#dock{background:#ffffff!important;border:1.5px solid #d9e2df!important;box-shadow:0 4px 14px rgba(30,50,45,.16)!important}
html body.sh-on:not(.sh-m).w3d #scr-world div#dock>.btn:not(#lantern-btn),html body.sh-on:not(.sh-m).w3d #scr-world div#dock #chat-btn{border:0!important;box-shadow:none!important}
html body.sh-on #fq-chip *,html body.sh-on #pond-chip *{opacity:1}
/* 11/7 대표: 위 📍 칸은 장소만(누르면 큰 지도) — 사람 수는 아래 👥 함께 숫자로 */
#sh-where .sh-map{font-size:13px;opacity:.7;margin-left:2px}


/* ===================== 11/7 대표: 대화창은 탭(💬 한마디)을 눌렀을 때만 창으로 · Z 플립(펼침·가로·바깥 화면) 배치 ===================== */
/* 대화창: 평소 숨김(머리 위 말풍선은 그대로) → 💬 탭을 누르면 흰 창(기록 + 입력) */
html body.sh-on #scr-world#scr-world:not(:has(#chatbar:not([hidden]))) #chatlog#chatlog{display:none!important}
html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{display:flex!important;flex-direction:column;background:#fff!important;border:1.5px solid #d9e2df!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(30,50,45,.2)!important;padding:0!important;-webkit-mask-image:none!important;mask-image:none!important;overflow:hidden!important}
html body.sh-on #chatlog h3{display:flex!important;align-items:center;gap:6px;margin:0!important;padding:10px 40px 8px 14px!important;font:900 14px var(--sh-font)!important;color:var(--sh-ink)!important;border-bottom:1px solid var(--sh-line);background:#fff!important;position:relative}
html body.sh-on #chatlog h3 small{font:700 11.5px var(--sh-font)!important;color:#8a9894!important}
html body.sh-on #chatlog .chat-x{position:absolute!important;right:8px;top:6px;width:30px;height:30px;border:0;border-radius:50%;background:var(--sh-soft)!important;color:#5b6b67!important;font-size:18px;line-height:30px;display:block!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list{flex:1;overflow-y:auto!important;padding:8px 10px!important;margin:0!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list li{opacity:1!important;visibility:visible!important;display:flex!important;animation:none!important;margin:0 0 6px!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .bub{background:var(--sh-soft)!important;color:var(--sh-ink)!important;border:0!important;box-shadow:none!important;text-shadow:none!important;font:600 14px/1.4 var(--sh-font)!important;padding:6px 11px!important;border-radius:14px!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list li.me .bub,html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list li.mine .bub{background:#dff7ef!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .bub b,html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .nk{color:#0b7d6b!important}
html body.sh-on #chatlog-list:empty::after{content:"아직 대화가 없어요. 가까이 있는 친구에게 먼저 인사해 봐요 👋";display:block;padding:18px 8px;text-align:center;font:600 13px var(--sh-font);color:#8a9894}
/* 입력줄도 흰색(어두운 반투명 → 흰 바탕) */
html body.sh-on #chatbar input,html body.sh-on #chatbar #chat-in{background:#fff!important;color:var(--sh-ink)!important;border:1.5px solid #d9e2df!important;box-shadow:none!important}
html body.sh-on #chatbar input::placeholder{color:#9aa8a4!important}
html body.sh-on #chatbar .quick button{background:#fff!important;color:var(--sh-ink)!important;border:1.5px solid #d9e2df!important;text-shadow:none!important;box-shadow:0 2px 6px rgba(30,50,45,.1)!important}
html body.sh-on #chatbar{background:none!important}
/* 💬 탭에 안 읽은 대화 수 */
#sh-chat-n{top:-5px;right:-3px}
html body.sh-on.sh-m.w3d #scr-world div#dock #chat-btn .sh-badge{position:absolute!important;top:-5px!important;right:6px!important;left:auto!important}

/* 휴대폰 세로: 대화창은 입력줄 위 · 화면의 40% */
html body.sh-on.sh-m #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{left:10px!important;right:10px!important;width:auto!important;top:auto!important;bottom:calc(132px + env(safe-area-inset-bottom))!important;max-height:40vh!important;height:40vh!important}
/* 이모트: 아래 줄 바로 위 가운데, 한 줄 */
html body.sh-on.sh-m.w3d #dock #emotes{left:10px!important;right:10px!important;width:auto!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:6px!important;padding:8px!important;border-radius:18px!important;background:#fff!important;border:1.5px solid #d9e2df!important;box-shadow:0 8px 22px rgba(30,50,45,.18)!important}
html body.sh-on.sh-m.w3d #dock #emotes[hidden]{display:none!important}

/* ===== 접은 바깥 화면 · 아주 작은 화면 (높이 520 이하 세로, 예: Z 플립 Flex Window 360×374) ===== */
html body.sh-on.sh-short:not(.sh-land) #fq-chip,html body.sh-on.sh-short:not(.sh-land) #pond-chip,html body.sh-on.sh-short #minimap{display:none!important}
html body.sh-on.sh-short .hud-tl,html body.sh-on.sh-short .hud-tr{top:calc(6px + env(safe-area-inset-top))!important}
html body.sh-on.sh-short #me-chip .face,html body.sh-on.sh-short #me-chip .face img{width:34px!important;height:34px!important}
html body.sh-on.sh-short #sh-where{height:36px;font-size:12.5px;padding:0 11px}
html body.sh-on.sh-short .hud-tr .sh-ic{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;font-size:16px!important}
html body.sh-on.sh-short.w3d #scr-world div#dock{bottom:calc(8px + env(safe-area-inset-bottom))!important;gap:6px!important}
html body.sh-on.sh-short.w3d #scr-world div#dock #chat-btn{height:42px!important;min-height:42px!important;padding:0 12px!important}
html body.sh-on.sh-short.w3d #scr-world div#dock #emote-btn,html body.sh-on.sh-short.w3d #scr-world div#dock #sh-people,html body.sh-on.sh-short.w3d #scr-world div#dock #tea-btn{width:42px!important;height:42px!important;min-height:42px!important;font-size:18px!important}
html body.sh-on.sh-short.w3d #scr-world div#dock #lantern-btn{width:46px!important;height:46px!important;min-height:46px!important}
html body.sh-on.sh-short.w3d #scr-world div#dock .lbl:not(#chat-btn .lbl){display:none!important}
html body.sh-on.sh-short #joy{width:84px!important;height:84px!important;left:10px!important;bottom:calc(62px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-short #place-prompt{bottom:calc(62px + env(safe-area-inset-bottom))!important;min-height:40px!important;padding:0 14px!important}
html body.sh-on.sh-short.w3d #dock #emotes{bottom:calc(58px + env(safe-area-inset-bottom))!important;padding:6px!important;gap:4px!important}
html body.sh-on.sh-short.w3d #dock #emotes .btn{height:46px!important;min-height:46px!important}
html body.sh-on.sh-short.w3d #dock #emotes .btn .el{font-size:10px!important}
html body.sh-on.sh-short #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{top:calc(50px + env(safe-area-inset-top))!important;bottom:calc(112px + env(safe-area-inset-bottom))!important;height:auto!important;max-height:none!important}
html body.sh-on.sh-short #chatbar .quick{display:none!important}
html body.sh-on.sh-short #db-sheet .db-card{max-height:92vh!important}
html body.sh-on.sh-short #db-notes{top:calc(48px + env(safe-area-inset-top))!important}
html body.sh-on.sh-short #sh-menu-card{top:calc(50px + env(safe-area-inset-top))!important}

/* ===== 가로 화면 (Z 플립을 반쯤 접어 세운 플렉스 모드 · 휴대폰 가로: 높이 520 이하 & 가로가 더 김) ===== */
html body.sh-on.sh-land #fq-chip{top:calc(54px + env(safe-area-inset-top))!important;left:10px!important;transform:scale(.9);transform-origin:0 0}
html body.sh-on.sh-land #pond-chip{transform:scale(.9);transform-origin:0 50%}
html body.sh-on.sh-land.w3d #scr-world div#dock{left:auto!important;right:10px!important;width:min(460px,60vw)!important}
html body.sh-on.sh-land #joy{bottom:calc(14px + env(safe-area-inset-bottom))!important;width:92px!important;height:92px!important}
html body.sh-on.sh-land #place-prompt{right:10px!important;bottom:calc(64px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-land.w3d #dock #emotes{left:auto!important;right:10px!important;width:min(460px,60vw)!important;bottom:calc(60px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-land #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{left:auto!important;right:10px!important;width:min(380px,46vw)!important;top:calc(54px + env(safe-area-inset-top))!important;bottom:calc(112px + env(safe-area-inset-bottom))!important;height:auto!important;max-height:none!important}
html body.sh-on.sh-land #chatbar{left:auto!important;right:10px!important;width:min(460px,60vw)!important}
html body.sh-on.sh-land #db-sheet .db-card{left:auto!important;right:0!important;top:0!important;bottom:0!important;width:min(380px,50vw)!important;max-height:none!important;border-radius:22px 0 0 22px!important;transform:translateX(20px)}
html body.sh-on.sh-land #db-sheet.on .db-card{transform:none}
html body.sh-on.sh-land .sh-grip{display:none!important}

#sh-menu-card .sh-only-short{display:none}
html body.sh-on.sh-short:not(.sh-land) #sh-menu-card .sh-only-short{display:flex}

/* 11/7 겹침 정리 — 대화창을 열면 아래 버튼·조이스틱·들어가기 버튼은 잠깐 숨김(입력줄이 그 자리를 씀) */
html body.sh-on.sh-m #scr-world:has(#chatbar:not([hidden])) #dock>.btn,html body.sh-on.sh-m #scr-world:has(#chatbar:not([hidden])) #joy,html body.sh-on.sh-m #scr-world:has(#chatbar:not([hidden])) #place-prompt{visibility:hidden!important;pointer-events:none!important}
html body.sh-on.sh-m #chatbar:not([hidden]){left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important}
html body.sh-on.sh-m.sh-land #chatbar:not([hidden]){left:auto!important;right:10px!important;width:min(460px,60vw)!important}
html body.sh-on.sh-m #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{bottom:calc(118px + env(safe-area-inset-bottom))!important}
html body.sh-on.sh-short #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{top:calc(54px + env(safe-area-inset-top))!important;bottom:calc(66px + env(safe-area-inset-bottom))!important}
/* 이모트를 열면 들어가기 버튼은 잠깐 숨김(이모트 줄과 안 겹치게) */
html body.sh-on.sh-m #scr-world:has(#emotes:not([hidden])) #place-prompt{visibility:hidden!important}
/* 좁은 화면(폭 400 이하): 작은 지도 64px · 번뇌 칩은 숫자만 */
@media (max-width:400px){
  html body.sh-on.sh-m #minimap{width:64px!important;height:64px!important}
  html body.sh-on.sh-m #pond-chip{font-size:0!important;gap:4px!important;padding-right:10px!important}
  html body.sh-on.sh-m #pond-chip b{font-size:13px!important}
}
/* 11/7 대표 화면: 휴대폰 연등 버튼이 동그라미 밖으로 삐져나옴 → 위 아이콘 · 아래 '연등' · 개수는 오른쪽 위 작은 배지 */
html body.sh-on.sh-m.w3d #scr-world div#dock #lantern-btn{flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;overflow:visible!important;white-space:nowrap!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #lantern-btn svg{width:20px!important;height:auto!important;margin:0!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #lantern-btn>span{font:900 10.5px/1.1 var(--sh-font)!important;margin:0!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #lantern-btn .v2cnt{position:absolute!important;top:-6px!important;right:-6px!important;margin:0!important;min-width:20px;height:20px;padding:0 5px!important;border-radius:999px!important;background:#fff!important;color:#0b7d6b!important;border:1.5px solid #2ADCCA!important;font:900 11px/17px var(--sh-font)!important;text-align:center}
html body.sh-on.sh-m.w3d #scr-world div#dock #chat-btn{min-width:0!important;max-width:none!important;left:auto!important;right:auto!important;transform:none!important;translate:none!important}
html body.sh-on.sh-m.w3d #scr-world div#dock #chat-btn>span[aria-hidden]{font-size:16px!important}
/* 11/7 마무리: 대화창 글씨 또렷하게(사라지는 효과 끔·줄바꿈) · 휴대폰 대화창 전체 폭 · 함께 창 버튼 줄이 잘리지 않게 */
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list li *{opacity:1!important;filter:none!important;animation:none!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .tx{color:var(--sh-ink)!important;white-space:normal!important;-webkit-line-clamp:unset!important;display:inline!important;overflow:visible!important;text-overflow:clip!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .bub{white-space:normal!important;max-width:none!important;overflow:visible!important}
html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .more,html body.sh-on #scr-world:has(#chatbar:not([hidden])) #chatlog-list .ell{display:none!important}
html body.sh-on.sh-m #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog:not(.x){max-width:none!important;min-width:0!important}
html body.sh-on.sh-m:not(.sh-land) #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{width:calc(100vw - 20px)!important}
#db-sheet .db-list{overflow-x:hidden!important}
body.sh-m .sh-acts{padding-left:8px!important;gap:5px!important}
body.sh-m .sh-acts button{font-size:12px!important;padding:0 2px!important}
/* 11/7 대표 화면(태블릿·큰 폰 가로): 아래 줄이 왼쪽으로 쏠림 — PC용 가운데 맞춤(translateX -50%)이 남아 있었음 → 변형 끄고, 넓은 화면에서는 가운데 560px 폭으로 */
html body.sh-on.sh-m.w3d #scr-world div#dock{transform:none!important;translate:none!important;margin:0 auto!important;max-width:560px!important}
html body.sh-on.sh-m.sh-land.w3d #scr-world div#dock{margin:0!important;max-width:none!important}
/* 11/7 대표: 치려고 하면 큰 대화 기록 창이 화면을 가려서 무거움 → 입력줄 한 줄만. 말은 캐릭터 머리 위 말풍선으로 보임.
 * 지난 대화가 궁금하면 입력줄의 '기록' 버튼으로 잠깐 펼침(body.sh-log) */
html body.sh-on:not(.sh-log) #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog#chatlog{display:none!important}
html body.sh-on:not(.sh-log) #scr-world#scr-world #chatbar#chatbar #chat-quick{display:none!important}
html body.sh-on #scr-world#scr-world #chatbar#chatbar #chat-log-btn{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;height:40px;min-width:0;padding:0 12px!important;margin:0!important;border-radius:999px!important;background:#fff!important;border:1.5px solid #d9e2df!important;box-shadow:none!important;color:#3d4b47!important;font:800 12.5px var(--sh-font)!important;order:5}
html body.sh-on.sh-log #scr-world#scr-world #chatbar#chatbar #chat-log-btn{background:#dff7ef!important;border-color:#2ADCCA!important;color:#0b7d6b!important}
html body.sh-on #scr-world#scr-world #chatbar#chatbar #chat-n{display:none!important}
html body.sh-on #scr-world#scr-world #chatbar#chatbar #chat-emo{background:#fff!important;border:1.5px solid #d9e2df!important;box-shadow:none!important}

/* ===== 11/7 대표: 휴대폰 가로(Z 플립 등) — 장소 안 화면 배치. 위 줄 작게 · 활동 탭은 오른쪽 세로 줄 · 대화는 왼쪽 아래 한 줄 · 화면 가운데는 캐릭터 자리 ===== */
html body.sh-land #place-scene .ps-top{padding:6px 8px 0!important;height:auto!important;gap:6px!important;align-items:flex-start!important;pointer-events:none}
html body.sh-land #place-scene .ps-top>*{pointer-events:auto}
html body.sh-land #place-scene .ps-ttl,html body.sh-land #place-scene #ps-who,html body.sh-land #place-scene #ps-exit{height:36px!important;min-height:0!important;padding:0 12px!important;font-size:13.5px!important;border-radius:999px!important;box-shadow:0 2px 8px rgba(30,50,45,.14)!important;margin:0!important}
html body.sh-land #place-scene .ps-ttl h2{font-size:14.5px!important;margin:0!important}
html body.sh-land #place-scene #ps-ico,html body.sh-land #place-scene #ps-who>span,html body.sh-land #place-scene #ps-exit>span:first-child{font-size:17px!important;width:auto!important;height:auto!important}
html body.sh-land #place-scene #ps-n{font-size:15px!important}
html body.sh-land #place-scene #ps-exit .lbl{font-size:13.5px!important}
html body.sh-land #place-scene .ps-bg>div[class$="-chip"],html body.sh-land #place-scene #ps-banner{top:8px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 440px)!important;height:auto!important;min-height:0!important;padding:6px 12px!important;font-size:12px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
/* 대화: 왼쪽 아래 한 줄 */
html body.sh-land #place-scene #ps-chat#ps-chat{left:8px!important;right:auto!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:min(300px,38vw)!important;height:auto!important;transform:none!important}
html body.sh-land #place-scene #ps-chat #ps-form{height:36px!important;margin:0!important}
html body.sh-land #place-scene #ps-chat #ps-in{height:36px!important;font-size:13px!important;min-width:0!important}
html body.sh-land #place-scene #ps-chat #ps-send{height:32px!important;padding:0 10px!important;font-size:12.5px!important}
html body.sh-land #place-scene #ps-chatnote{display:none!important}
/* 활동 창: 접으면 오른쪽 세로 줄, 펴면 오른쪽 옆 창 */
html body.sh-land #place-scene #ps-sheet#ps-sheet{left:auto!important;right:8px!important;top:52px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:min(330px,42vw)!important;max-width:none!important;height:auto!important;max-height:none!important;transform:none!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet .ps-head{flex:0 0 auto!important;padding:6px!important;gap:6px!important;display:flex!important;align-items:center!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet .ps-tabs{flex:1!important;display:flex!important;gap:2px!important;padding:3px!important;min-width:0!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet .ps-tab{flex:1!important;min-width:0!important;height:42px!important;padding:2px!important;font-size:10.5px!important;line-height:1.15!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet .ps-fold{flex:0 0 34px!important;width:34px!important;height:34px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet .ps-act{flex:1!important;min-height:0!important;overflow-y:auto!important;padding:6px 10px 10px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold{width:62px!important;bottom:auto!important;max-height:calc(100% - 60px)!important;background:#fff!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-head{flex-direction:column!important;padding:5px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-tabs{flex-direction:column!important;padding:0!important;background:none!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-tab{width:52px!important;flex:0 0 auto!important;height:46px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-act{display:none!important}html body.sh-land #place-scene #ps-sheet#ps-sheet,html body.sh-land #place-scene #ps-chat#ps-chat{position:absolute!important;margin:0!important;z-index:6}
html body.sh-land #place-scene #ps-sheet#ps-sheet{inset:52px 8px calc(8px + env(safe-area-inset-bottom)) auto!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold{bottom:auto!important}
html body.sh-land #place-scene #ps-chat#ps-chat{inset:auto auto calc(8px + env(safe-area-inset-bottom)) 8px!important}
html body.sh-land #place-scene #ps-exit{margin-left:auto!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-tab{height:40px!important;font-size:9.5px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-head{padding:4px!important;gap:2px!important}
html body.sh-land #place-scene #ps-sheet#ps-sheet.fold .ps-fold{flex:0 0 30px!important;height:30px!important;width:30px!important}

/* 11/7 대표: 가로(Z 플립 등)·바깥 화면에서 지도가 없음 → 작은 지도 다시 보이기(오른쪽 위 🔔·☰ 바로 아래, 누르면 큰 지도) */
html body.sh-on.sh-short #minimap#minimap{display:block!important;top:calc(54px + env(safe-area-inset-top))!important;bottom:auto!important;right:10px!important;left:auto!important;width:60px!important;height:60px!important;border-radius:50%!important}
/* ===== 11/7 귓속말(개인톡): 분홍 글씨 · 박스 없음 ===== */
#sh-wfeed{position:fixed;left:12px;top:calc(124px + env(safe-area-inset-top));z-index:40;display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:min(420px,70vw);pointer-events:none}
html body.sh-short #sh-wfeed{top:calc(54px + env(safe-area-inset-top));max-width:min(380px,48vw)}
html body.sh-land #sh-wfeed{top:calc(100px + env(safe-area-inset-top))}
#sh-wfeed .wf-line{pointer-events:auto;all:unset;cursor:pointer;display:block;max-width:100%;font:800 14.5px/1.35 var(--sh-font,system-ui);color:#e8177f;text-align:left;word-break:keep-all;overflow-wrap:anywhere;
  text-shadow:0 0 2px #fff,0 0 2px #fff,1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,0 2px 6px rgba(0,0,0,.25);animation:wfIn .3s ease-out;transition:opacity .9s}
#sh-wfeed .wf-line{pointer-events:auto}
#sh-wfeed .wf-line i{font-style:normal;margin-right:4px}
#sh-wfeed .wf-line b{font-weight:900;margin-right:6px;color:#c40d6a}
#sh-wfeed .wf-line em{font-style:normal;font-size:11.5px;font-weight:800;margin-left:8px;color:#fff;background:#e8177f;border-radius:999px;padding:1px 8px;text-shadow:none;vertical-align:1px}
#sh-wfeed .wf-line.mine{color:#b5487f}
#sh-wfeed .wf-line.mine b{color:#9b2d66}
#sh-wfeed .wf-line.out{opacity:0}
@keyframes wfIn{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
/* 귓속말 입력 모드: 입력줄 앞에 '🤫 ○○' 분홍 표, 입력칸 분홍 테두리 */
#sh-dm-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px 0 12px;margin:0 6px 0 0;border:0;border-radius:999px;background:#ffe1ef;color:#c40d6a;font:900 13px var(--sh-font,system-ui);white-space:nowrap;max-width:40vw;overflow:hidden;text-overflow:ellipsis;order:-1;cursor:pointer}
#sh-dm-chip[hidden]{display:none!important}
#sh-dm-chip i{font-style:normal;font-size:11px;opacity:.7}
html body.sh-dm #scr-world #chatbar#chatbar #chat-in{border-color:#f06aa8!important;box-shadow:0 0 0 3px rgba(240,106,168,.18)!important}
html body.sh-dm #scr-world #chatbar#chatbar #chat-in::placeholder{color:#d0508f}
/* 기록 탭: 전체 | 귓속말 · 귓속말 줄은 분홍 */
#sh-ctabs{display:inline-flex;gap:2px;margin-left:auto;margin-right:30px;background:#f1f4f3;border-radius:999px;padding:2px}
#sh-ctabs button{border:0;background:none;border-radius:999px;padding:3px 10px;font:800 12px var(--sh-font,system-ui);color:#6b7a76;cursor:pointer}
#sh-ctabs button.on{background:#fff;color:#c40d6a;box-shadow:0 1px 3px rgba(0,0,0,.12)}
html body.sh-on #scr-world #chatlog-list li.dm .bub{background:#ffe8f3!important}
html body.sh-on #scr-world #chatlog-list li.dm .bub,html body.sh-on #scr-world #chatlog-list li.dm .tx{color:#b0136a!important}
html body.sh-ctab-dm #chatlog-list li:not(.dm){display:none!important}/* 11/7 다듬기: 귓속말 표는 입력줄 위에 붙은 작은 이름표(입력칸을 줄이지 않게) · 귓속말 줄 글자는 한 줄로 이어서 · 기록 탭은 기록 맨 위 줄 */
html body #chatbar #sh-dm-chip{position:absolute!important;left:8px;bottom:calc(100% + 6px);margin:0!important;height:30px;box-shadow:0 2px 8px rgba(196,13,106,.18);border:1.5px solid #f6a8cc;background:#fff0f7}
html body #chatbar:has(#sh-dm-chip:not([hidden])){overflow:visible!important}
#sh-wfeed .wf-line i,#sh-wfeed .wf-line b,#sh-wfeed .wf-line span,#sh-wfeed .wf-line em{display:inline!important;position:static!important;width:auto!important}
#sh-ctabs{display:flex!important;align-self:flex-start;margin:8px 10px 0!important;flex:0 0 auto}
html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li.dm .bub{background:#ffe8f3!important}
html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li.dm .bub,html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li.dm .tx,html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li.dm .bub b,html body.sh-on #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li.dm .nk{color:#b0136a!important}
html body.sh-on.sh-ctab-dm #scr-world#scr-world:has(#chatbar:not([hidden])) #chatlog-list li:not(.dm){display:none!important}
/* 받은 귓속말 말풍선(나에게만 보임): 분홍 */
.ent .bubble.say.whisper{background:#fff0f7!important;color:#c40d6a!important;border:1.5px solid #f6a8cc!important}
.ent .bubble.say.whisper::before{content:"🤫 "}
#sh-wfeed[style*="top"]{top:auto}

/* ---------- 11/7 chat-heads: 말 건 사람 얼굴 줄 (상자 없이, 분홍 글씨) ---------- */
#ch-heads{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:4px;pointer-events:none}
#ch-heads:empty{display:none}
.ch-head{pointer-events:auto;display:flex;align-items:center;gap:6px;max-width:100%;transition:opacity .25s,transform .25s}
.ch-head.out{opacity:0;transform:translateX(-12px)}
.ch-head.pop{animation:chPop .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes chPop{0%{transform:translateX(-14px) scale(.9);opacity:0}100%{transform:none;opacity:1}}
.ch-head button{all:unset;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ch-head .ch-main{display:flex;align-items:center;gap:9px;min-width:0;min-height:44px}
.ch-face{position:relative;flex:none;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 0 0 2.5px #e8177f,0 2px 8px rgba(0,0,0,.18);overflow:visible}
.ch-face img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 18%}
.ch-n{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:#e8177f;color:#fff;font:800 11px/18px var(--sh-font,system-ui);font-style:normal;text-align:center;box-shadow:0 0 0 2px #fff}
.ch-head.new .ch-face{animation:chRing 1.6s ease-in-out infinite}
@keyframes chRing{0%,100%{box-shadow:0 0 0 2.5px #e8177f,0 0 0 0 rgba(232,23,127,.45)}50%{box-shadow:0 0 0 2.5px #e8177f,0 0 0 8px rgba(232,23,127,0)}}
.ch-tx{display:flex;flex-direction:column;min-width:0;color:#e8177f;text-shadow:0 0 3px #fff,0 0 3px #fff,0 1px 2px rgba(255,255,255,.9)}
.ch-tx b{font:800 14px/1.2 var(--sh-font,system-ui)}
.ch-q{font:700 14px/1.3 var(--sh-font,system-ui);max-width:min(300px,52vw);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-q u{text-decoration:none;opacity:.7}
.ch-head:not(.new) .ch-q{opacity:.8}
.ch-head .ch-main em{flex:none;font:800 12px/1 var(--sh-font,system-ui);font-style:normal;color:#fff;background:#e8177f;border-radius:999px;padding:5px 9px}
.ch-head.on .ch-head .ch-main em{background:#fff;color:#e8177f;box-shadow:inset 0 0 0 1.5px #e8177f}
.ch-head .ch-x{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font:800 12px/1 system-ui;color:#9a6b80;opacity:.7}
.ch-head .ch-x:hover{opacity:1;background:rgba(255,255,255,.7)}
.ch-head.req .ch-face{box-shadow:0 0 0 2.5px #2ADCCA,0 2px 8px rgba(0,0,0,.18)}
.ch-head.req .ch-tx{color:#0f8f7f}
.ch-acts{display:flex;gap:6px;flex:none}
.ch-head .ch-acts button{font:800 13px/1 var(--sh-font,system-ui);padding:9px 13px;border-radius:999px;background:#fff;color:#4a5a57;box-shadow:inset 0 0 0 1.5px #cfe9e4}
.ch-head .ch-acts button.ok{background:linear-gradient(135deg,#6EEAC2,#2ADCCA);color:#0b3b35;box-shadow:none}
@media (max-width:600px){.ch-face{width:36px;height:36px}.ch-q{max-width:42vw}.ch-acts button{padding:8px 11px}}

/* 11/7 대표: 말 건 사람·귓속말 줄은 왼쪽 중간 (11/15: !important 추가) */
html body #sh-wfeed,html body.sh-short #sh-wfeed,html body.sh-land #sh-wfeed{top:50%!important;transform:translateY(-50%)!important}

/* 11/7 소식 탭 정리: 귓속말 칸은 위에 한 줄, 소식은 아래로 세로 목록 */
#db-sheet #db-list{display:block}
#db-sheet form.sh-dm{margin:4px 0 10px;padding:10px 12px}
#db-sheet form.sh-dm b{margin-bottom:6px;font-size:13.5px}
#db-sheet .sh-news{display:block}

/* 11/7 대표: 왼쪽 채팅 라이브 12줄 (상자 없이 글씨 줄) */
#ch-live{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:6px 0 4px;pointer-events:none;max-width:min(380px,70vw)}
#ch-live:empty{display:none}
#ch-live .cl-line{max-width:100%;font:700 14px/1.35 var(--sh-font,system-ui);color:#2b2a24;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 2px #fff;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;animation:clIn .25s ease-out;transition:opacity .6s}
#ch-live .cl-line b{font-weight:900;color:#0f7f70;margin-right:6px}
#ch-live .cl-line.me b{color:#7a6a55}
#ch-live .cl-line.dm,#ch-live .cl-line.dm b{color:#e8177f}
#ch-live .cl-line.sys{color:#5f8f86;font-weight:700;font-size:12.5px}
#ch-live .cl-line.old{opacity:.55}
@keyframes clIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
[data-theme="night"] #ch-live .cl-line{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 2px #000}
[data-theme="night"] #ch-live .cl-line b{color:#8ff0d8}
@media (max-width:600px){#ch-live{max-width:62vw}#ch-live .cl-line{font-size:13px}}
/* 같은 대화가 두 번 보이지 않게: '기록'을 직접 열었을 때만 예전 기록 창 */
body.ch-live-on:has(#chat-log-btn[aria-expanded="false"]) #chatlog{display:none!important}

/* 11/7 대표: 상대(분홍)와 내 말(먹색)은 색이 달라야 함 */
.ch-tx .ch-q.mine{color:#4a4038;opacity:1}
.ch-tx .ch-q.mine u{color:#8a7a6a;opacity:1;font-weight:900}

/* 11/7 대표: 라이브 줄도 내 말(먹색)과 상대(이름 민트·귓속말 분홍) 색을 나눔 */
#ch-live .cl-line.me,#ch-live .cl-line.dm.me{color:#4a4038}
#ch-live .cl-line.me b,#ch-live .cl-line.dm.me b{color:#8a7a6a}
#ch-live .cl-line.dm:not(.me),#ch-live .cl-line.dm:not(.me) b{color:#e8177f}
[data-theme="night"] #ch-live .cl-line.me,[data-theme="night"] #ch-live .cl-line.dm.me{color:#f3ede4}
[data-theme="night"] #ch-live .cl-line.me b{color:#cbbfae}

/* 11/7 대표: 도반 수락(민트)·미룸(회색) 소식도 얼굴 줄에 */
.ch-head.info.acc .ch-face{box-shadow:0 0 0 2.5px #2ADCCA,0 2px 8px rgba(0,0,0,.18)}
.ch-head.info.acc.new .ch-face{animation:chRingM 1.6s ease-in-out infinite}
@keyframes chRingM{0%,100%{box-shadow:0 0 0 2.5px #2ADCCA,0 0 0 0 rgba(42,220,202,.5)}50%{box-shadow:0 0 0 2.5px #2ADCCA,0 0 0 8px rgba(42,220,202,0)}}
.ch-head.info.acc .ch-tx{color:#0f8f7f}
.ch-head.info.acc .ch-main em{background:linear-gradient(135deg,#6EEAC2,#2ADCCA);color:#0b3b35}
.ch-head.info.dec .ch-face{box-shadow:0 0 0 2px #c9d3d0;filter:grayscale(.5)}
.ch-head.info.dec .ch-tx{color:#7d8a86}

/* 11/7 대표: '기록' 창 정리 — 귓속말 이름표가 마지막 말을 가리지 않게, 같은 대화 두 번 안 보이게 */
html body.sh-dm.sh-dm #scr-world:has(#chatbar:not([hidden])) #chatlog #chatlog-list{padding-bottom:46px!important}
#chatlog #chatlog-list li.ch-dup{display:none!important}
#chatlog li.dm .who{display:block!important;color:#e8177f;font-weight:900;font-size:12px;margin-bottom:2px}
#chatlog li.dm.me .who{color:#8a7a6a}
#chatlog li.dm.me .bub{color:#4a4038}
body.ch-live-on:has(#chat-log-btn[aria-expanded="true"]) #ch-live{display:none}

/* 11/7 대표: "얼굴 + 이름 + 말" 줄이 보기 쉬움 → 대화는 왼쪽 한 곳, 같은 모양. '기록' 상자는 없앰(위로 올려 지난 대화 50줄) */
html body #ch-live{pointer-events:auto;gap:6px;max-height:min(46vh,520px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.18) transparent;padding-right:4px;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22px);mask-image:linear-gradient(to bottom,transparent 0,#000 22px)}
html body #ch-live .cl-line{display:flex;align-items:flex-start;gap:8px;-webkit-line-clamp:unset;overflow:visible;flex:none}
html body #ch-live .cl-line.cont{margin-top:-4px}
#ch-live .cl-face{flex:none;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #2ADCCA,0 1px 4px rgba(0,0,0,.15);overflow:hidden;font-style:normal}
#ch-live .cl-face img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
#ch-live .cl-line.cont .cl-face{visibility:hidden;height:0}
#ch-live .cl-line.me .cl-face{box-shadow:0 0 0 2px #cbbfae,0 1px 4px rgba(0,0,0,.15)}
#ch-live .cl-line.dm:not(.me) .cl-face{box-shadow:0 0 0 2px #e8177f,0 1px 4px rgba(0,0,0,.15)}
#ch-live .cl-tx{display:flex;flex-direction:column;min-width:0}
#ch-live .cl-tx b{font:900 13px/1.25 var(--sh-font,system-ui);margin:0}
#ch-live .cl-tx>span{font:700 14.5px/1.35 var(--sh-font,system-ui);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
#ch-live .cl-line.sys{padding-left:38px}
@media (max-width:600px){#ch-live .cl-face{width:26px;height:26px}#ch-live .cl-tx>span{font-size:13.5px}#ch-live .cl-line.sys{padding-left:34px}html body #ch-live{max-height:38vh}}
body.ch-live-on #chatlog{display:none!important}
body.ch-live-on #chat-log-btn{display:none!important}

/* 11/7 대표: 휴대폰도 PC처럼 대화 보이게 + 💬 토글로 접기/펴기 */
#ch-toggle{all:unset;pointer-events:auto;cursor:pointer;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px 0 9px;margin:4px 0 2px;border-radius:999px;background:#fff;border:1.5px solid #d9e2df;box-shadow:0 2px 6px rgba(0,0,0,.12);font:800 12.5px/1 var(--sh-font,system-ui);color:#3f5a55;-webkit-tap-highlight-color:transparent}
#ch-toggle i{font-style:normal;font-size:14px}
#ch-toggle b{min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#e8177f;color:#fff;font:800 11px/18px var(--sh-font,system-ui);text-align:center}
body.ch-live-hide #ch-live{display:none!important}
body:not(.ch-live-hide) #ch-toggle{opacity:.85}
html body #ch-live:not(.up){-webkit-mask-image:none;mask-image:none}
@media (max-width:600px){html body #ch-live{max-width:74vw;max-height:40vh}#ch-live .cl-tx>span{font-size:14px}#ch-live .cl-face{width:28px;height:28px}}

/* 11/7 대표: 3D 공간 머리 위에는 감정 아이콘만 — 글은 왼쪽 대화 한 곳에서 */
html body .ent .bubble.say.ico,html body .bubble.say.ico{font-size:26px!important;line-height:1!important;padding:6px 9px!important;min-width:0!important;border-radius:999px!important;white-space:nowrap!important}
body.ch-live-on #place-scene #ps-log,body.ch-live-on #ps-log{display:none!important}

html body #sh-wfeed.in-place{top:auto!important;transform:none!important}

/* 11/7 대표: Z 폴드7 바깥 화면 · 큰 글씨 — 글자 자동 확대 막기 + 촘촘 모드 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body.sh-tight #fq-chip span:not(.dots)[data-short]{font-size:0!important;letter-spacing:0}
html body.sh-tight #fq-chip span:not(.dots)[data-short]::after{content:attr(data-short);font-size:14px;font-weight:800}
html body.sh-tight #fq-chip .dots{display:none!important}
html body.sh-tight #fq-chip{gap:4px!important;padding-right:12px!important}
html body.sh-tight #scr-world #dock #emote-btn .lbl,html body.sh-tight #scr-world #dock #sh-people .lbl{display:none!important}

/* 11/7 대표 '글씨 정리': 아래 바 글자는 늘 한 줄 · 자리가 모자라면 이모트·함께·차 건네기는 그림만 */
html body.w3d #scr-world #dock .btn,html body.w3d #scr-world #dock .btn .lbl{white-space:nowrap!important}
html body.w3d #scr-world #dock .btn .lbl{flex:0 0 auto}
html body.dock-tight #scr-world #dock #emote-btn .lbl,html body.dock-tight #scr-world #dock #sh-people .lbl,html body.dock-tight #scr-world #dock #tea-btn .lbl{display:none!important}
html body.dock-tight #scr-world #dock #emote-btn,html body.dock-tight #scr-world #dock #sh-people,html body.dock-tight #scr-world #dock #tea-btn{padding:0 12px!important;flex:0 0 auto!important}
/* BRIEF89 귓속말 요청함(대표 11/14 확정 시안): 소식 탭 '말 걸어온 사람' · '도반 신청' 칸 */
#db-sheet .wr-sec{display:flex;align-items:center;gap:6px;margin:10px 4px 2px;font:800 13px/1.3 var(--sh-font);color:#7a5a2e}
#db-sheet .wr-sec em{font-style:normal;min-width:20px;padding:1px 7px;border-radius:999px;background:#f1e3c9;color:#7a5a2e;font-size:12px;text-align:center}
#db-sheet .wr-empty{margin:4px 6px 10px;padding:8px 10px;font-size:12.5px;text-align:left;opacity:.75}
#db-sheet .sh-news.wr .db-bt{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#db-sheet .sh-news.wr .wr-rep{margin-left:auto;background:transparent;border-color:transparent;box-shadow:none;color:#9a6a52;font-weight:600}
.sh-acts .wr-wait{opacity:.7;cursor:default}
#db-sheet .sh-acts{flex-wrap:wrap;padding-right:12px}   /* 사람 줄 단추가 창 오른쪽 끝에 닿지 않게 */
#db-sheet .sh-acts button{flex:1 1 auto;padding:0 10px}   /* 글자 길이만큼 차지하고, 안 들어가면 다음 줄로(글자가 옆 단추에 겹치지 않게) */
body.sh-m #db-sheet .sh-acts button{padding:0 8px!important}
/* BRIEF90 자동 손님: 이름표 없음 · 함께 창 맨 아래 안내 한 줄 + 켜고 끄기 */
html body .ent.guest .nm{display:none!important}
.ent.guest{cursor:pointer}
.hall-tag:empty{display:none}
#db-sheet .db-guest{display:flex;align-items:center;gap:8px;margin:10px 6px 4px;padding:9px 10px;border-radius:12px;background:var(--sh-soft,#f4efe4);font:600 12.5px/1.35 var(--sh-font);color:#5b4428}
#db-sheet .db-guest span{flex:1;min-width:0}
#db-sheet .db-sw{flex:none;display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 4px 0 10px;border:0;border-radius:999px;background:transparent;font:800 12.5px var(--sh-font);color:#2c4a44;cursor:pointer}
#db-sheet .db-sw i{position:relative;width:38px;height:22px;border-radius:999px;background:#cfc6b4;transition:background .15s}
#db-sheet .db-sw i::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:translate .15s}
#db-sheet .db-sw.on i{background:var(--sh-mint,#3fd0b5)}
#db-sheet .db-sw.on i::after{translate:16px 0}


/* BRIEF112: 장소 안에서 귓속말 답장 — 채팅바가 장소 패널 위에 표시 */
#chatbar.sh-place-dm{z-index:25!important;box-shadow:0 -4px 20px rgba(0,0,0,.18)}

/* BRIEF149 (대표 지시 2026-11-18): 쌍계사 귓속말을 허브와 같은 흐름으로 — 분홍 줄 누르기 = 답장 · 길게 누르기 = 메뉴 · 채팅 줄 안 '○○에게 ✕' 칩 · 지난 말 보기 */
#ch-live .cl-line.tap{pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#ch-live .cl-line .cl-re{font-style:normal;display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:#e8177f;color:#fff;font:800 11px/18px var(--sh-font,system-ui);text-shadow:none;vertical-align:1px}
#ch-live .cl-line.knock .cl-tx b{text-decoration:underline;text-underline-offset:3px}
#sh-dm-menu{position:fixed;z-index:10050;min-width:190px;display:grid;background:#fff;border-radius:14px;box-shadow:0 6px 20px rgba(0,0,0,.3);padding:6px 0}
#sh-dm-menu button{all:unset;box-sizing:border-box;padding:10px 14px;font:700 14px var(--sh-font,system-ui);color:#2e2a24;cursor:pointer}
#sh-dm-menu button:hover{background:#f6f1e6}
#sh-dm-menu button small{margin-left:6px;font-size:11px;font-weight:600;color:#8a7b62}
#sh-dm-menu button.red{color:#c0392b}
#sh-dm-hist{position:fixed;inset:0;z-index:10060;background:rgba(0,0,0,.35);display:grid;place-items:center;padding:16px}
#sh-dm-hist .card{width:min(360px,100%);max-height:70vh;display:flex;flex-direction:column;background:#fffaf2;border-radius:18px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.3)}
#sh-dm-hist h3{margin:0 0 10px;font:800 16px/1.3 var(--sh-font,system-ui);color:#3a3226}
#sh-dm-hist ul{list-style:none;margin:0;padding:0;overflow:auto;display:grid;gap:6px}
#sh-dm-hist li{font:600 14px/1.4 var(--sh-font,system-ui);color:#c40d6a;word-break:keep-all;overflow-wrap:anywhere}
#sh-dm-hist li b{margin-right:6px;font-weight:800}
#sh-dm-hist li.me{color:#5b5046}
#sh-dm-hist li.none{color:#8a7b62}
#sh-dm-hist button{all:unset;align-self:center;margin-top:12px;padding:9px 22px;border-radius:999px;background:#6eeac2;font:800 14px var(--sh-font,system-ui);color:#1a3a2a;cursor:pointer}
.db-row[data-sid]{cursor:pointer}
html body.b113 #chatbar #sh-dm-chip{position:static!important;left:auto;bottom:auto;margin:0 6px 0 0!important;height:36px;max-width:46%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none}
body.b113.sh-dm #chatbar #b113-type{display:none!important}
#sh-dm-chip .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sh-dm-chip i{flex:none}
