/* 新版79：表情回應 */
#msgs .m.has-rx{position:relative;margin-bottom:14px}
.mrx{position:absolute;bottom:-14px;right:8px;display:inline-flex;align-items:center;gap:1px;border:0;padding:2px 7px;border-radius:99px;background:var(--card,#fff);box-shadow:0 2px 8px #0000001f,0 0 0 2px var(--bg,#fff8f2);font-size:14px;line-height:1.3;z-index:2;cursor:pointer;color:var(--ink,#333)}
#msgs .m.me .mrx{right:auto;left:8px}
.mrx i{font-style:normal}.mrx b{font-size:11.5px;font-weight:800;margin-left:3px;opacity:.75}
.mrx.mine{background:#fff0f3;box-shadow:0 2px 8px #e85d7533,0 0 0 2px var(--bg,#fff8f2)}
html.night .mrx{background:#2f2750;box-shadow:0 2px 8px #0008,0 0 0 2px #1b1634;color:#eee}html.night .mrx.mine{background:#4a2a48}
.mrx.pop{animation:mrxpop .45s cubic-bezier(.3,1.8,.5,1)}
@keyframes mrxpop{0%{transform:scale(0)}100%{transform:scale(1)}}
.mrx-fly{position:fixed;z-index:9999;font-style:normal;font-size:26px;pointer-events:none;transform:translate(-50%,-50%);animation:mrxfly 1.1s ease-out forwards;opacity:0}
@keyframes mrxfly{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}15%{opacity:1;transform:translate(-50%,-80%) scale(1.15)}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),-260%) scale(.9) rotate(var(--r))}}
.r2-react button.on{background:linear-gradient(135deg,#ffd6de,#ffb3c3)!important;box-shadow:inset 0 0 0 2px #e85d75}
/* 語音波形 */
#msgs .m.vw-m{padding:8px 10px!important;min-width:220px}
.vw{display:flex;align-items:center;gap:9px}
.vw-pl{flex:none;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;background:#fff;color:#e85d75;box-shadow:0 2px 6px #0000001a}
.m.me .vw-pl{background:#ffffffe6;color:#d9485f}
.vw-pl .vw-ipa{display:none}.vw.playing .vw-pl .vw-ip{display:none}.vw.playing .vw-pl .vw-ipa{display:block}
.vw-bars{flex:1;display:flex;align-items:center;gap:2px;height:30px;min-width:120px;cursor:pointer}
.vw-bars i{flex:1;min-width:2px;max-width:4px;height:calc(var(--h,.3)*100%);border-radius:3px;background:currentColor;opacity:.32;transition:opacity .15s,transform .15s}
.vw-bars i.on{opacity:1}
.m.me .vw-bars{color:#fff}.m:not(.me) .vw-bars{color:#e85d75}html.night .m:not(.me) .vw-bars{color:#ff9fb3}
.vw.playing .vw-bars i.on:last-of-type,.vw.playing .vw-bars i.on+i:not(.on){transform:scaleY(1.25)}
.vw-tx{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;font-variant-numeric:tabular-nums}
.vw-tx b{font-weight:800}.vw-sp{border:0;border-radius:99px;padding:0 6px;font-size:10.5px;font-weight:800;background:#00000014;color:inherit}
.m.me .vw-sp{background:#ffffff33}
.vw-live{display:flex;align-items:center;gap:10px;margin:0 12px 6px;padding:8px 14px;border-radius:18px;background:linear-gradient(135deg,#fff0f2,#ffe6ea);box-shadow:0 3px 12px #e85d7522;animation:tyin .25s ease}
.vw-live.out{animation:tyout .2s ease forwards}
html.night .vw-live{background:#3a2440}
.vw-dot{width:10px;height:10px;border-radius:50%;background:#ff3b5c;flex:none;animation:vwdot 1s infinite}
@keyframes vwdot{50%{opacity:.25}}
.vw-lb{flex:1;display:flex;align-items:center;gap:2px;height:30px}
.vw-lb i{flex:1;height:calc(var(--h,.08)*100%);min-height:3px;border-radius:3px;background:#e85d75;transition:height .07s linear}
.vw-lt{font-variant-numeric:tabular-nums;font-size:13px;color:#d9485f}.vw-live small{font-size:11px;color:#a5606c;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.mrx.pop,.mrx-fly,.vw-dot{animation:none!important}.mrx-fly{display:none}}
/* 新版81：聊天輸入列——不超出螢幕；鍵盤打開時拿掉 iPhone 底部安全區留白 */
html body #room .bar{box-sizing:border-box!important;min-width:0!important;max-width:calc(100% - 16px)!important;width:auto!important;align-self:stretch}
html body #room .bar>*{min-width:0}
html body #room .bar #in{flex:1 1 0!important;min-width:0!important;width:auto!important}
html body #room .bar .ib,html body #room .bar .send{flex:0 0 auto!important}
html.kb body #room .bar{margin-bottom:6px!important;padding-bottom:6px!important}
html body #room .bar{border-radius:28px!important;border:1px solid var(--line,#eadfc4)!important;margin-left:8px!important;margin-right:8px!important}
html.night body #room .bar{border-color:#3a3058!important}
html.kb body #room{padding-bottom:0!important}
