/* v1.8 · MSG-ACT-02 – menu thao tác chung của tin nhắn */
.ma18-host{position:relative}
.ma18-more{position:absolute;top:3px;right:3px;width:26px;height:24px;padding:0;border:1px solid #d5dde8;border-radius:8px;background:rgba(255,255,255,.94);color:#334155;font-size:16px;line-height:1;cursor:pointer;opacity:0}
.ma18-host:hover>.ma18-more,.ma18-host:focus-within>.ma18-more,.ma18-host.ma18-open>.ma18-more,.ma18-more:focus-visible{opacity:1}
.ma18-more:hover{background:#eff6ff;border-color:#93c5fd}
.ma18-more:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
.ma18-host.ma18-open{box-shadow:0 0 0 2px #bfdbfe}
/* the same actions now live in the menu; the ticket chips stay because they are information, not actions */
body.ma18-on .zgs-msg-actions>.zgs-reply,body.ma18-on .zgs-msg-actions>.zgs-create,body.ma18-on .zgs-msg-actions>.zgs-download{display:none}
.ma18-menu{position:fixed;z-index:5200;min-width:190px;max-width:280px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.2);font-size:14px}
.ma18-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 10px;border:0;border-radius:8px;background:none;color:#0f172a;text-align:left;cursor:pointer;font:inherit}
.ma18-menu button:hover,.ma18-menu button:focus-visible{background:#eff6ff;outline:none}
.ma18-menu button.danger{color:#b91c1c}
.ma18-menu button.danger:hover,.ma18-menu button.danger:focus-visible{background:#fef2f2}
.ma18-icon{width:20px;text-align:center;flex:none}
/* phone: no hover, so the button is always there and the menu is a sheet at the bottom with large targets */
@media (hover:none),(max-width:640px){.ma18-more{opacity:.85;width:32px;height:28px}}
.ma18-menu.sheet{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));top:auto;max-width:none;padding:8px;border-radius:16px}
.ma18-menu.sheet button{min-height:48px;font-size:16px}
@media (hover:none){.ma18-host{-webkit-touch-callout:none}}
