/* v1.0.78 — Message cards and long-press menu; consistent tactile surfaces. */
#chat-items .bubble,#chat-items .official-push-content .qy-broadcast-card,#chat-items .official-push-content .qy-push-edition{transition:transform .17s cubic-bezier(.2,.8,.2,1),filter .17s ease,box-shadow .17s ease;transform-origin:center center;will-change:auto}
#chat-items .bubble.qy-message-pressed,#chat-items .official-push-content.qy-message-pressed .qy-broadcast-card{transform:scale(.965)!important;filter:brightness(.975)!important;box-shadow:0 2px 10px #20305019!important}
#chat-items .message-line.qy-message-menu-selected .bubble,#chat-items .message-line.qy-message-menu-selected .qy-broadcast-card{filter:brightness(.97);transform:scale(.984);}
#chat-items .official-push-content,#chat-items .bubble{-webkit-touch-callout:none;touch-action:pan-y;}
#chat-items .bubble .wallet-chat-card{transition:transform .16s ease,filter .16s ease}
#chat-items .bubble.qy-message-pressed .wallet-chat-card{transform:none}
.qy-msg-menu-layer{position:fixed;inset:0;z-index:120;pointer-events:none}
.qy-msg-menu-backdrop{position:absolute;inset:0;pointer-events:auto;background:transparent}
.qy-msg-menu{position:fixed;z-index:121;display:flex;gap:3px;align-items:stretch;padding:6px;background:rgba(255,255,255,.98);border:1px solid #e7ebf4;border-radius:15px;box-shadow:0 13px 44px #15233e2a,0 1px 3px #1425420a;backdrop-filter:blur(14px);pointer-events:auto;animation:qy-msg-menu-in .16s cubic-bezier(.2,.85,.25,1);white-space:nowrap}
.qy-msg-menu button{min-width:57px;min-height:53px;padding:8px 11px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:0;border-radius:10px;background:none;color:#405572;font-size:11px;letter-spacing:0;cursor:pointer;font-family:inherit}
.qy-msg-menu button .ico{width:19px;height:19px;stroke-width:1.8}
.qy-msg-menu button:hover,.qy-msg-menu button:focus-visible{background:#f1f5fc;color:#315fcd;outline:none}
.qy-msg-menu button:active{transform:scale(.94);background:#e7eefb}
.qy-msg-menu button.is-destructive{color:#c95f67}
.qy-msg-menu button.is-destructive:hover{background:#fff0f0}
@keyframes qy-msg-menu-in{from{opacity:0;transform:translateY(5px) scale(.97)}to{opacity:1;transform:none}}
.qy-quote-draft{display:flex;align-items:center;gap:10px;margin:0 2px 9px;padding:9px 11px;background:#f4f7fc;border:1px solid #e9eef8;border-radius:11px;min-width:0}
.qy-quote-draft .qy-quote-accent{width:3px;align-self:stretch;min-height:28px;border-radius:3px;background:#6088e8}
.qy-quote-preview{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;font-size:12px}.qy-quote-preview b{color:#4671cb;font-weight:650}.qy-quote-preview span{color:#8190a5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qy-quote-draft>button{border:0;background:transparent;color:#8c9aad;cursor:pointer;padding:5px}.qy-quote-draft>button .ico{width:17px;height:17px}
#chat-items .qy-msg-quoted{display:flex;flex-direction:column;gap:3px;text-align:left;max-width:100%;min-width:110px;padding:7px 9px;margin-bottom:7px;border:0;border-left:3px solid #95ace1;border-radius:4px;background:#263c6120;color:inherit;cursor:pointer}
#chat-items .qy-msg-quoted b{font-size:11px;opacity:.9;font-weight:650}#chat-items .qy-msg-quoted span{font-size:11px;opacity:.83;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#chat-items .in .qy-msg-quoted{background:#f0f3fa;color:#52627c}
#chat-items .qy-recalled-bubble{background:transparent!important;border:1px dashed #d7deeb!important;box-shadow:none!important;color:#8896aa!important;padding:10px 12px!important}
#chat-items .qy-msg-recalled{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:#8593a7}
#chat-items .qy-msg-recalled .ico{width:14px;height:14px}
#chat-items .qy-msg-flash .bubble{animation:qy-msg-focus .9s ease}
@keyframes qy-msg-focus{0%,65%{filter:brightness(.89)}100%{filter:none}}
@media(max-width:500px){.qy-msg-menu{max-width:calc(100vw - 20px);padding:4px;gap:0}.qy-msg-menu button{min-width:54px;padding:8px}.qy-quote-draft{margin:0 0 8px}}
@media(prefers-reduced-motion:reduce){#chat-items .bubble,#chat-items .qy-broadcast-card,.qy-msg-menu{animation:none!important;transition:none!important}}

@media(hover:none){#chat-items .bubble,#chat-items .official-push-content{-webkit-user-select:none;user-select:none}}
