
  .gx-skin { display: flex; gap: 2px; align-items: center; margin-inline-start: 6px; position: relative; }
  .gx-skin > button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 19px; line-height: 1; padding: 0; }
  .gx-skin > button:hover { background: var(--bg-3, var(--bg-2)); }
  .gx-skin-pop { position: absolute; top: 34px; inset-inline-end: 0; display: none; gap: 2px; padding: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 5; }
  .gx-skin-pop.show { display: flex; }
  .gx-skin-pop button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; cursor: pointer; }
  .gx-skin-pop button.on, .gx-skin-pop button:hover { background: var(--accent-bg, var(--bg-3)); }
  /* formatting toolbar */
  #gx-fmt { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: none; gap: 2px; padding: 4px; border-radius: 10px; background: var(--bg-2);
      border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 32; }
  #gx-fmt.show { display: flex; }
  #gx-fmt button { min-width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 14px; display: grid; place-items: center; padding: 0 6px; }
  #gx-fmt button:hover { background: var(--bg-3, var(--bg-1)); color: var(--bright); }
  #gx-fmt i.sep { width: 1px; background: var(--border); margin: 4px 2px; }
  #gx-fmt svg { width: 16px; height: 16px; }
  /* quick reactions in the hover bar */
  .msg-tools .gx-qr { font-size: 17px; line-height: 1; width: 32px; }
  .msg-tools .gx-qr img { width: 18px; height: 18px; }
  /* remove a link preview */
  .gx-lpw { position: relative; display: inline-block; max-width: 100%; }
  .gx-lpx { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .15s; }
  @media (hover: hover) { .msg:hover .gx-lpx { opacity: 1; } }
  .msg.tools-open .gx-lpx, .gx-lpx:focus-visible { opacity: 1; }
  /* hide reactions */
  :root.gx-norx #chat-messages .reactions { display: none !important; }
  /* polls */
  .gx-poll-multi { font-size: 12px; color: var(--muted); margin: -2px 0 6px; }
  .gx-pl-row { display: flex; gap: 6px; margin-bottom: 6px; }
  .gx-pl-row input { flex: 1; min-width: 0; }
  .gx-pl-row button { flex: none; width: 36px; }
  .gx-pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
  .gx-pl-foot label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; cursor: pointer; }
  /* slow mode countdown */
  #gx-slow { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 2px 16px 4px; }
  #gx-slow.show { display: flex; }
  #gx-slow b { color: var(--yellow, #f0b232); font-variant-numeric: tabular-nums; }
