/* Party Mix 2026 — Emoji & reactions UI. Scoped to chat only. */
body.np-home .rpm-community .np-chat-emoji-palette{display:none!important}
.rpm-party-emoji-picker{
  position:fixed;z-index:210000;display:flex;flex-direction:column;gap:0;
  width:min(382px,calc(100vw - 20px));max-height:min(420px,calc(100dvh - 24px));
  overflow:hidden;
  border:1px solid #eed5e5;border-radius:19px;background:#fff;
  box-shadow:0 20px 65px rgba(52,20,46,.25),0 0 0 1px rgba(255,255,255,.7);
  color:#2b2238;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
}
.rpm-party-emoji-picker[hidden]{display:none!important}
.rpm-party-picker-header{display:flex;align-items:center;gap:11px;padding:15px 15px 12px;
  background:linear-gradient(125deg,#fff0f9,#fff 78%);border-bottom:1px solid #f3e5ed}
.rpm-party-picker-icon{display:grid;place-items:center;width:42px;height:42px;
  background:#f9deee;border-radius:13px;font-size:25px}
.rpm-party-picker-header>div{flex:1}
.rpm-party-picker-header strong{display:block;font-weight:850;font-size:14px;color:#4d2946;letter-spacing:.02em}
.rpm-party-picker-header small{display:block;font-size:11px;color:#8f7286;margin-top:3px}
.rpm-party-picker-close{width:32px;height:32px;flex:0 0 32px;border:0;border-radius:50%;
  background:#ffeff7;color:#b30068;cursor:pointer;font-size:15px}
.rpm-party-picker-close:hover{background:#ffd9ea}
.rpm-party-picker-search{display:flex;align-items:center;gap:7px;margin:12px 13px 9px;padding:0 12px;
  border:1px solid #f0d5e4;border-radius:11px;background:#fffafd}
.rpm-party-picker-search span{color:#ad688e;font-size:22px}
.rpm-party-picker-search input{flex:1;width:100%;height:40px;border:0;background:transparent;outline:0;
  font-size:13px;color:#372538}
.rpm-party-picker-search input::placeholder{color:#9f8a9a}
.rpm-party-picker-tabs{display:flex;align-items:center;gap:4px;padding:1px 12px 11px;
  overflow-x:auto;scrollbar-width:none;flex:0 0 auto}
.rpm-party-picker-tabs::-webkit-scrollbar{display:none}
.rpm-party-picker-tab{flex:0 0 auto;padding:8px 10px;border:1px solid transparent;
  border-radius:9px;background:#f8f5f8;color:#7c6376;font-size:11px;font-weight:750;cursor:pointer}
.rpm-party-picker-tab[aria-selected="true"]{background:#ffe1ee;color:#c0006d;border-color:#f8c1dc}
.rpm-party-picker-tab:hover{background:#fff0f7}
.rpm-party-picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;
  min-height:95px;overflow-y:auto;overflow-x:hidden;align-content:start;padding:10px 13px 13px;
  border-top:1px solid #f4ecf2;scrollbar-color:#f3d4e5 transparent}
.rpm-party-picker-emoji{display:grid;place-items:center;aspect-ratio:1;
  border:1px solid transparent;border-radius:11px;background:#fff;
  font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;
  font-size:26px;cursor:pointer;line-height:1}
.rpm-party-picker-emoji:hover,.rpm-party-picker-emoji:focus-visible{
  border-color:#f2c1dc;background:#fff0f7;transform:scale(1.07)}
.rpm-party-picker-empty{grid-column:1/-1;color:#8e7083;font-size:12px;text-align:center}
.rpm-party-picker-foot{padding:10px;text-align:center;font-size:10px;font-weight:650;
  background:#fffafd;border-top:1px solid #f2e6ee;color:#98768d}
.rpm-party-emoji-feedback{position:fixed;z-index:220000;left:50%;bottom:28px;
  max-width:min(420px,94vw);transform:translateX(-50%);padding:13px 18px;
  border-radius:999px;color:#fff;background:#a50865;box-shadow:0 13px 28px rgba(68,11,54,.25);
  font:750 12px/1.5 system-ui;text-align:center;pointer-events:none}
.rpm-party-emoji-feedback.is-error{background:#6f394f}
.rpm-party-emoji-feedback[hidden]{display:none!important}

/* Reaction strip lives within each message, no floating scroll jumping. */
body.np-home .rpm-community .rpm-message-reactions{display:flex;align-items:center;flex-wrap:wrap;
  gap:5px;margin-top:6px;min-height:24px}
body.np-home .rpm-community .rpm-react-pills{display:contents}
body.np-home .rpm-community .rpm-react-pill,
body.np-home .rpm-community .rpm-react-add{
  min-height:27px;border:1px solid #f0d4e5;border-radius:999px;padding:3px 9px;
  background:#fff9fc;box-shadow:none;color:#663e5b;cursor:pointer;
  font:650 12px/1 system-ui;white-space:nowrap;
  transition:background .14s,border-color .14s,transform .14s;
}
body.np-home .rpm-community .rpm-react-pill{display:inline-flex;align-items:center;gap:5px;
  font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;font-size:16px}
body.np-home .rpm-community .rpm-react-count{font:750 11px system-ui;color:#8c617b}
body.np-home .rpm-community .rpm-react-pill.is-mine{border-color:#f28ebf;background:#ffe3f1;
  box-shadow:inset 0 0 0 1px #ffcce3}
body.np-home .rpm-community .rpm-react-pill.is-mine .rpm-react-count{color:#b60069}
body.np-home .rpm-community .rpm-react-add{display:inline-grid;place-items:center;
  padding:4px 8px;color:#ab5885;font-size:18px;line-height:1}
body.np-home .rpm-community .rpm-react-pill:hover,
body.np-home .rpm-community .rpm-react-add:hover{background:#ffe8f3;
  border-color:#eb96c1;transform:translateY(-1px)}
body.np-home .rpm-community .rpm-message-reactions.is-not-ready{opacity:.55}
body.np-home .rpm-community .np-chat-dm-message .rpm-message-reactions{max-width:100%;
  justify-content:flex-start;margin:5px 0 1px}
body.np-home .rpm-community .np-chat-dm-message-mine .rpm-message-reactions{justify-content:flex-end}
body.np-home .rpm-community .np-chat-dm-message .rpm-react-pill,
body.np-home .rpm-community .np-chat-dm-message .rpm-react-add{min-height:26px}
@media(max-width:620px){
  .rpm-party-emoji-picker{width:min(360px,calc(100vw - 16px));border-radius:16px}
  .rpm-party-picker-header{padding:10px}
  .rpm-party-picker-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:8px}
  .rpm-party-picker-emoji{font-size:24px}
  .rpm-party-picker-tab{padding:7px 8px;font-size:10px}
  body.np-home .rpm-community .rpm-message-reactions{gap:4px;margin-top:5px}
  body.np-home .rpm-community .rpm-react-pill,
  body.np-home .rpm-community .rpm-react-add{padding:3px 7px;min-height:25px}
  body.np-home .rpm-community .rpm-react-pill{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .rpm-party-picker-emoji,.rpm-react-pill,.rpm-react-add{transition:none!important;transform:none!important}
}
