/* One continuous object: the screen module stays above a translating keypad. */
.contact-phone-panel{--phone-h:min(560px,78svh);--phone-w:calc(var(--phone-h)*.385);--closed-scale:.42;position:fixed;right:20px;bottom:18px;width:var(--phone-w);height:var(--phone-h);z-index:60;pointer-events:none;color:#263c3d}
.contact-phone-figure{position:relative;width:100%;height:100%;transform-origin:100% 100%;transform:translateY(calc(var(--phone-h)*.27*var(--closed-scale))) scale(var(--closed-scale));transition:transform .8s cubic-bezier(.22,.8,.25,1);filter:drop-shadow(0 5px 7px #74566a25);isolation:isolate}
.contact-phone-panel.is-expanded .contact-phone-figure{transform:translateY(0) scale(1)}
.contact-phone-keypad,.contact-phone-shell{position:absolute;left:-38%;top:0;width:176.55%;max-width:none;height:auto;user-select:none;pointer-events:none}
.contact-phone-keypad{z-index:0;clip-path:inset(67% 0 0);transform:translateY(-27%);transition:transform .6s cubic-bezier(.25,.75,.22,1)}
.contact-phone-panel.is-expanded .contact-phone-keypad{transform:translateY(0);transition-delay:.12s}
.contact-phone-front{position:absolute;inset:0 0 27%;z-index:1;overflow:hidden;border-radius:0 0 20% 20% / 0 0 7% 7%;pointer-events:none}
.contact-phone-shell{height:calc(var(--phone-h)*1.02)}
.contact-phone-screen{position:absolute;left:13.2%;top:21.2%;width:73.6%;height:43%;overflow:hidden;border-radius:3px;background:#89959108;transition:background .55s,box-shadow .55s}
.contact-phone-panel.is-expanded .contact-phone-screen{background:#d8f1e9e8;box-shadow:inset 0 0 18px #eafff575,0 0 8px #b6e8d235;transition-delay:.15s}
.contact-phone-call{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#ebf5eb;text-shadow:0 1px 2px #334a4d66;transition:opacity .25s .25s}
.contact-phone-call>span{font-size:24px}.contact-phone-call strong{font:600 24px/1.2 Manrope,monospace;letter-spacing:.04em}.contact-phone-call small{font:14px/1.4 Manrope,'PingFang SC',sans-serif}
.contact-phone-panel.is-expanded .contact-phone-call{opacity:0;transition-delay:0s}
.contact-phone-launch{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;pointer-events:auto;border-radius:28px;background:none;cursor:pointer}
.contact-phone-launch:focus-visible{outline:3px solid #a05d89;outline-offset:-4px}
.contact-phone-panel.is-expanded .contact-phone-launch{pointer-events:none}
.contact-phone-content{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:8px 6px;gap:3px;opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s;pointer-events:none;font-family:Manrope,'PingFang SC',sans-serif}
.contact-phone-panel.is-expanded .contact-phone-content{opacity:1;visibility:visible;transition:opacity .3s .36s,visibility 0s .2s;pointer-events:auto}
.contact-phone-content h2{font:600 12px/1.4 Manrope,'PingFang SC',sans-serif;text-align:center;margin:0 0 2px;padding-bottom:4px;border-bottom:1px solid #45675a35}
.contact-phone-content button{padding:3px 2px;display:block;width:100%;background:none;border:0;text-align:left;color:#263c3d;border-radius:3px}
.contact-phone-content button:hover,.contact-phone-content button:focus-visible{background:#fff9;outline:1px solid #5a8172;outline-offset:0}
.contact-phone-content button span{display:block;font-size:9px;line-height:1.35}.contact-phone-content button strong{display:block;font:500 11px/1.5 Manrope,'PingFang SC',sans-serif;white-space:nowrap}
.contact-phone-status{margin:1px 0 0;min-height:12px;text-align:center;font-size:9px;line-height:1.3}
.contact-phone-close{position:absolute;right:-12px;top:0;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#7c4e69;background:#fff9;border:1px solid #af7f9650;z-index:3;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility 0s .8s;font:20px/1 Manrope,sans-serif}
.contact-phone-panel.is-expanded .contact-phone-close{opacity:1;visibility:visible;pointer-events:auto;transition-delay:.3s,0s}
@media(max-width:600px){.contact-phone-panel{--phone-h:min(510px,74svh);right:14px;bottom:14px;--closed-scale:.4}.contact-phone-content{padding:5px;gap:2px}.contact-phone-content h2{font-size:11px}.contact-phone-content button{padding:2px}.contact-phone-content button strong{font-size:10px}.contact-phone-call strong{font-size:23px}}
@media(max-height:650px){.contact-phone-panel{--phone-h:92svh}.contact-phone-content{overflow-y:auto;justify-content:flex-start;gap:0;padding:4px}.contact-phone-content h2{font-size:10px}.contact-phone-content button{padding:1px}.contact-phone-content button strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.contact-phone-figure,.contact-phone-keypad,.contact-phone-screen,.contact-phone-call,.contact-phone-content,.contact-phone-close{transition-duration:.01s!important;transition-delay:0s!important}}

/* Keep the longer closed-screen label within the physical LCD. */
.contact-phone-call strong{font-size:20px;letter-spacing:.01em;white-space:nowrap}

/* The quiet call reminder has its own layer, so it cannot interrupt slider travel. */
.contact-phone-nudge{position:relative;width:100%;height:100%;transform-origin:50% 69%}
.contact-phone-panel.is-ringing .contact-phone-nudge{animation:phone-call-reminder .56s ease-in-out both}
@keyframes phone-call-reminder{0%,100%{transform:translateX(0) rotate(0)}12%{transform:translateX(-1.5px) rotate(-2.4deg)}26%{transform:translateX(1.5px) rotate(2.4deg)}40%{transform:translateX(-1px) rotate(-1.8deg)}54%{transform:translateX(1px) rotate(1.8deg)}68%{transform:rotate(-.9deg)}82%{transform:rotate(.6deg)}}
@media(prefers-reduced-motion:reduce){.contact-phone-panel.is-ringing .contact-phone-nudge{animation:none}}

/* The QR opens beside the phone at a scan-friendly size. */
.wechat-qr-card{position:fixed;inset:auto calc(min(560px,78svh)*.385 + 40px) 100px auto;margin:0;width:296px;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);overflow:auto;padding:18px 18px 8px;border:1px solid #d4c7df;border-radius:8px;background:#fff;color:#44354e;box-shadow:0 8px 26px #60456e15;font-family:Manrope,'PingFang SC',sans-serif;z-index:61}
.wechat-qr-card[open]{animation:wechat-qr-in .22s cubic-bezier(.22,1,.36,1) both}
.wechat-qr-card::backdrop{background:#ffffff26}
.wechat-qr-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.wechat-qr-heading h2{font-size:16px;font-weight:600;margin:0;line-height:1.4}
#wechat-qr-close{font:22px/1 Manrope,sans-serif;width:28px;height:28px;padding:0;color:#705c7c;border-radius:3px}
#wechat-qr-close:hover{background:#f3eef7}
.wechat-qr-caption{font-size:12px;line-height:1.7;margin:2px 0 0;color:#6c5977}
.wechat-qr-image{display:block;width:100%;height:auto;background:#fff;margin:0;user-select:none}
.wechat-qr-account{font-size:13px;text-align:center;line-height:1.6;margin:0 0 12px;user-select:text;color:#47384f}
.wechat-qr-actions{display:flex;justify-content:space-between;align-items:center;gap:18px}
.wechat-qr-actions button,.wechat-qr-actions a{display:block;font-size:12px;line-height:1.7;color:#67447b;border:0;border-bottom:1px solid #c5b3d0;padding:5px 0;background:none;text-decoration:none;cursor:pointer}
.wechat-qr-card :is(a,button):focus-visible{outline:2px solid #a18ab1;outline-offset:4px}
.wechat-qr-status{min-height:18px;font-size:11px;line-height:1.6;text-align:center;color:#67447b;margin:9px 0 0}
@keyframes wechat-qr-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.wechat-qr-card{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:304px;max-height:90svh}.wechat-qr-card[open]{animation:wechat-qr-mobile-in .22s ease-out both}}
@media(max-height:650px) and (min-width:701px){.wechat-qr-card{bottom:16px;right:calc(92svh*.385 + 40px);max-height:calc(100svh - 32px)}}
@keyframes wechat-qr-mobile-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.wechat-qr-card[open]{animation:none}}
