/* 상담 화면 공통 (고객 c.html · 매장 store.html) */

/* 앱 바 */
.appbar{display:flex;align-items:center;gap:4px;min-height:60px;padding:calc(8px + var(--top)) 8px 8px 12px;background:var(--glass);-webkit-backdrop-filter:saturate(1.8) blur(16px);backdrop-filter:saturate(1.8) blur(16px);position:sticky;top:0;z-index:20;flex-shrink:0}
.appbar .who{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding-left:4px}
.appbar .who .n{font-size:17px;font-weight:700;letter-spacing:-.02em}
.appbar .who .s{font-size:12px;color:var(--green);display:flex;align-items:center;gap:3px;font-weight:500;cursor:pointer}
.appbar .who .s .i{width:13px;height:13px;stroke-width:2.2}
.btn-bomb{height:36px;padding:0 13px;border-radius:999px;background:var(--red-soft);color:var(--red);font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:4px;flex-shrink:0;margin-left:4px;transition:background .15s,transform .12s var(--spring)}
.btn-bomb:hover{background:var(--red-soft)}
.btn-bomb:active{transform:scale(.95)}
.btn-bomb .i{width:17px;height:17px;stroke-width:2.1}

/* 통화 중 */
.callbar{display:flex;align-items:center;gap:8px;margin:4px 12px 0;padding:10px 16px;border-radius:14px;background:var(--green);color:#fff;font-size:14px;font-weight:600;cursor:pointer;flex-shrink:0}
.callbar .num{margin-left:auto;opacity:.85}

/* 메시지 */
.msgs{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 16px;display:flex;flex-direction:column;gap:3px;-webkit-overflow-scrolling:touch}
.day{align-self:center;font-size:12px;color:var(--text-3);padding:10px 0 6px}
.sys{align-self:center;display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text-3);background:var(--fill);padding:6px 12px;border-radius:999px;margin:6px 0 10px;text-align:center}
.sys .i{width:13px;height:13px;color:var(--green);stroke-width:2.2}
.m{display:flex;align-items:flex-end;gap:6px;max-width:82%;margin-top:8px;animation:msgIn .35s var(--spring)}
.m+.m{margin-top:3px}
.m.me{align-self:flex-end;flex-direction:row-reverse}
.m.them{align-self:flex-start}
@keyframes msgIn{from{transform:translateY(8px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.m .bb{padding:10px 14px;border-radius:20px;font-size:16px;line-height:1.5;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere}
.m.me .bb{background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.m.them .bb{background:var(--fill);color:var(--text);border-bottom-left-radius:6px}
.m .tm{font-size:11px;color:var(--text-4);white-space:nowrap;padding-bottom:2px}
.m .pic{max-width:220px;border-radius:18px;overflow:hidden}
.m .pic img{width:100%;display:block}
@media (min-width:1024px){ .m{max-width:62%} }

/* 요청·잠긴 정보 카드 */
.xcard{width:270px;max-width:100%;border-radius:20px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);padding:16px;display:flex;flex-direction:column;gap:12px}
.xcard .h{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700}
.xcard .h .ic{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--green-soft);color:var(--green)}
.xcard .h .ic .i{width:17px;height:17px;stroke-width:2.1}
.xcard .h .ic.blue{background:var(--blue-soft);color:var(--blue)}
.xcard .flds{display:flex;flex-wrap:wrap;gap:6px}
.xcard .flds span{font-size:13px;padding:4px 10px;border-radius:8px;background:var(--fill);color:var(--text-2)}
.xcard .rows{display:flex;flex-direction:column;gap:8px;font-size:14px}
.xcard .r{display:flex;justify-content:space-between;gap:10px}
.xcard .r span{color:var(--text-3)}
.xcard .r b{font-weight:600;text-align:right}
.xcard .r b.hide{color:transparent;text-shadow:0 0 9px var(--text-2);user-select:none}
.xcard.is-gone .rows{color:var(--text-3);font-size:13px}

/* 입력 */
.composer{display:flex;align-items:flex-end;gap:8px;padding:8px 12px calc(10px + var(--bot));background:transparent;flex-shrink:0}
.composer .plus{width:44px;height:44px;border-radius:50%;background:var(--fill);display:grid;place-items:center;color:var(--text-2);flex-shrink:0;transition:background .15s}
.composer .plus:hover{background:var(--fill-2)}
.composer .box{flex:1;min-width:0;display:flex;align-items:flex-end;border-radius:22px;background:var(--fill);padding:3px 3px 3px 16px}
.composer textarea{flex:1;min-width:0;max-height:120px;min-height:38px;padding:8px 0;border:0;background:none;outline:none;resize:none;line-height:1.4;font-size:16px}
.composer textarea::placeholder{color:var(--text-4)}
.composer .send{width:38px;height:38px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;flex-shrink:0;transition:transform .2s var(--spring),opacity .2s}
.composer .send[disabled]{opacity:0;transform:scale(.5);pointer-events:none}
.composer .send .i{width:18px;height:18px;stroke-width:2.2}

/* 연결 중 */
.calling{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:24px;text-align:center}
.pulse{position:relative;display:grid;place-items:center}
.pulse::before,.pulse::after{content:"";position:absolute;inset:-6px;border-radius:34%;background:var(--blue);opacity:0;animation:ring 2.4s var(--spring) infinite}
.pulse::after{animation-delay:1.2s}
@keyframes ring{0%{transform:scale(.9);opacity:.25}100%{transform:scale(1.8);opacity:0}}
.pulse .avatar{position:relative}

/* 음성통화 */
.voice{position:fixed;inset:0;z-index:90;background:radial-gradient(120% 80% at 50% 0%,#2A3E6B 0%,#111A2E 60%,#0A0F1C 100%);color:#fff;display:flex;flex-direction:column;align-items:center;padding:calc(16px + var(--top)) 24px calc(48px + var(--bot))}
.voice .top{align-self:stretch;display:flex}
.voice .top .icon-btn{color:rgba(255,255,255,.8)}
.voice .top .icon-btn:hover{background:rgba(255,255,255,.1)}
.voice .who{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}
.voice .who .avatar{width:104px;height:104px;font-size:38px;border-radius:34px;margin-bottom:10px}
.voice .who .n{font-size:30px;font-weight:700;letter-spacing:-.03em}
.voice .who .s{font-size:14px;color:rgba(255,255,255,.65);display:flex;align-items:center;gap:5px}
.voice .who .tm{font-size:17px;color:rgba(255,255,255,.8);font-variant-numeric:tabular-nums}
.voice .ctrl{display:grid;grid-template-columns:repeat(3,72px);gap:22px 30px}
.voice .ctrl button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.8)}
.voice .ctrl .c{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center;transition:background .2s,transform .12s var(--spring)}
.voice .ctrl button:active .c{transform:scale(.93)}
.voice .ctrl .c.is-on{background:var(--surface);color:var(--dark)}
.voice .ctrl .end .c{background:var(--red)}
.voice .ctrl .i{width:28px;height:28px}

/* 파기 완료 */
.done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 24px 140px;text-align:center}
.done .ic{width:84px;height:84px;border-radius:30px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;margin-bottom:8px;animation:pop .5s var(--spring)}
.done .ic .i{width:40px;height:40px;stroke-width:1.8}
.vanish{animation:vanish .7s var(--spring) forwards}
@keyframes vanish{to{opacity:0;transform:scale(.92);filter:blur(6px)}}

/* 안전번호 */
.safe-num{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.safe-num span{padding:18px 0;border-radius:16px;background:var(--fill);text-align:center;font-size:24px;font-weight:700;letter-spacing:.06em;font-variant-numeric:tabular-nums}
