/* ════════════════════════════════════════
   공감(리액션) — public/css/office-reactions.css  (2026-10-25 · office-reactions.js)
   그림: Microsoft Fluent UI Emoji(MIT) · 글자 스티커: 합회 남색(#2F557F) 기본 + 5가지 색
════════════════════════════════════════ */

/* 공감 줄 — 칩 「그림 숫자」 + [☺+] */
.rx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.oc-msg.is-me .rx-bar { justify-content: flex-end; }
.rx-bar.is-msg.is-empty { display: none; }   /* 채팅: 공감이 없으면 줄을 비운다(PC 「공감」 글자 단추·휴대폰 길게 누르기로 남긴다) */
.rx-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 5px; border: 1px solid #e3e8ee; border-radius: 13px;
  background: #fff; color: #4a5568; font-size: 12px; font-family: inherit; cursor: pointer; transition: transform .12s, background .12s; }
.rx-chip:hover { background: #f4f7fb; }
.rx-chip:active { transform: scale(.94); }
.rx-chip.is-mine { border-color: #2F557F; background: #eaf1f9; color: #2F557F; font-weight: 700; }
.rx-chip .rx-img { width: 18px; height: 18px; }
.rx-n { min-width: 8px; }
.rx-add { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border: 1px dashed #cfd7e1; border-radius: 13px; background: transparent;
  color: #8a94a1; font-size: 12px; font-family: inherit; cursor: pointer; }
.rx-add:hover { color: #2F557F; border-color: #2F557F; background: #f4f7fb; }
.rx-bar.is-msg .rx-add { opacity: 0; transition: opacity .15s; }
.oc-msg:hover .rx-bar.is-msg .rx-add { opacity: 1; }
@media (hover: none) { .rx-bar.is-msg .rx-add { display: none; } }   /* 휴대폰은 길게 누르기로 */
.oc-msg.is-me .rx-bar.is-msg .rx-add { display: none; }   /* 내 글에는 공감 남기기 없음(2026-10-28) — 남이 남긴 공감은 보인다 */
.rx-bar.is-compact { margin-top: 2px; }
.rx-bar.is-compact .rx-chip, .rx-bar.is-compact .rx-add { height: 22px; font-size: 11.5px; }
.rx-bar.is-compact .rx-chip .rx-img { width: 15px; height: 15px; }

/* 그림 */
.rx-img { display: block; width: 34px; height: 34px; object-fit: contain; pointer-events: none; }

/* 글자 스티커 — 알약 모양 + 작은 그림 */
.rx-stk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 6px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: -.3px; white-space: nowrap; line-height: 1; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 3px 8px rgba(15, 23, 42, .14);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.rx-stk-ic { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .92); pointer-events: none; }
.rx-stk.is-mini { gap: 3px; padding: 2px 7px 2px 2px; font-size: 11px; box-shadow: none; text-shadow: none; }
.rx-stk.is-mini .rx-stk-ic { width: 15px; height: 15px; padding: 1px; }
.rx-tone-denim  { background: linear-gradient(135deg, #3E6FA3, #2F557F); }
.rx-tone-gold   { background: linear-gradient(135deg, #F7C64A, #E39A12); }
.rx-tone-purple { background: linear-gradient(135deg, #8E6CD6, #5E43A8); }
.rx-tone-sky    { background: linear-gradient(135deg, #4DB4E6, #2481B8); }
.rx-tone-rose   { background: linear-gradient(135deg, #F08AA0, #D0486A); }
.rx-tone-green  { background: linear-gradient(135deg, #4FBE8C, #23845D); }

/* 공감 판 */
.rx-pick-ov { position: fixed; inset: 0; z-index: 3300; }
.rx-pick-ov.is-sheet { display: flex; align-items: flex-end; background: rgba(15, 23, 42, .45); animation: rx-fade .15s ease-out; }
.rx-pick { position: absolute; width: 340px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .22); border: 1px solid #e3e8ee; }
.rx-pick-ov.is-sheet .rx-pick { position: static; width: 100%; height: 72vh; max-height: 560px; border-radius: 22px 22px 0 0; border: 0;
  padding-bottom: env(safe-area-inset-bottom); animation: rx-up .2s ease-out; }
.rx-grip { flex-shrink: 0; width: 46px; height: 5px; margin: 9px auto 3px; border-radius: 3px; background: #cfd6de; }
.rx-search { flex-shrink: 0; margin: 10px 12px 8px; padding: 10px 16px; border: 0; border-radius: 22px; background: #f1f4f8; font-size: 14px; font-family: inherit; outline: none; }
.rx-search:focus { box-shadow: inset 0 0 0 2px #c7d6e8; }
.rx-tabs { flex-shrink: 0; display: flex; gap: 6px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
.rx-tab { flex-shrink: 0; padding: 6px 14px; border: 1px solid #dfe5ec; border-radius: 18px; background: #fff; color: #394452; font-size: 13px; font-family: inherit; cursor: pointer; }
.rx-tab:hover { border-color: #2F557F; color: #2F557F; }
.rx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 14px; }
.rx-sec { margin: 12px 4px 6px; font-size: 12.5px; font-weight: 700; color: #5b6776; }
.rx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.rx-cell { display: flex; align-items: center; justify-content: center; padding: 7px 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; transition: transform .1s, background .1s; }
.rx-cell:hover { background: #f1f4f8; }
.rx-cell:active { transform: scale(.9); }
.rx-cell.is-mine { background: #e3edf8; box-shadow: inset 0 0 0 2px #9db7d6; }
.rx-grid.is-stk { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rx-grid.is-stk .rx-cell { padding: 8px 2px; }

/* 휴대폰 길게 누르기 메뉴 맨 위 — 자주 쓰는 6개 + [+] */
.rx-quick { display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 6px 14px 10px; border-bottom: 1px solid #edf2f7; margin-bottom: 4px; }
.rx-q { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.rx-q:active { transform: scale(.88); }
.rx-q .rx-img { width: 32px; height: 32px; }
.rx-q-more { background: #2b2f36; color: #fff; font-size: 22px; font-weight: 300; font-family: inherit; line-height: 1; }

@keyframes rx-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rx-fade { from { background: rgba(15, 23, 42, 0); } }
