/* The site's own menu for the right mouse button (rightmenu.js). It is used on every page, so the colours fall back
   to dark ones where a page has no theme variables of the chat. */
.ctx-menu{position:fixed;z-index:1000;right:auto;bottom:auto;display:grid;min-width:200px;max-width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;padding:6px;border-radius:14px;background:var(--card,#17171a);color:var(--tx,#f3f0ea);border:1px solid var(--line2,rgba(255,255,255,.16));box-shadow:var(--shadow,0 18px 50px rgba(0,0,0,.45));font-size:14px;line-height:1.3;animation:ctx-in .12s ease-out;-webkit-user-select:none;user-select:none}
.ctx-menu button,.ctx-menu a{display:block;width:100%;padding:8px 12px;border:0;border-radius:9px;background:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:default;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctx-menu button:hover,.ctx-menu a:hover,.ctx-menu .at{background:var(--hover,rgba(255,255,255,.07))}
.ctx-menu .danger{color:var(--err,#f0a79c)}
.ctx-emojis{display:flex;gap:2px;padding:2px 2px 4px}
.ctx-menu .ctx-emojis button{width:36px;height:34px;padding:0;flex:none;text-align:center;font-size:18px;line-height:1;border-radius:9px}
.ctx-menu .ctx-emojis .on{background:var(--hover,rgba(255,255,255,.07));box-shadow:inset 0 0 0 1px var(--line2,rgba(255,255,255,.16))}
.ctx-menu hr{height:1px;margin:5px 8px;border:0;background:var(--line,rgba(255,255,255,.1))}
.ctx-tip{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);z-index:1001;max-width:min(440px,calc(100vw - 32px));padding:10px 16px;border-radius:12px;background:var(--tx,#f3f0ea);color:var(--bg,#0b0b0c);font-size:14px;line-height:1.35;box-shadow:0 12px 36px rgba(0,0,0,.35);animation:ctx-in .16s ease-out}
@keyframes ctx-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.ctx-menu,.ctx-tip{animation:none}}
