
  /* #79 #87-#97 writing messages */
  #chat-messages.gx-sel .msg { cursor: pointer; padding-inline-start: 44px; position: relative; }
  #chat-messages.gx-sel .msg::before { content: ''; position: absolute; inset-inline-start: 12px; top: 14px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); box-sizing: border-box; }
  #chat-messages.gx-sel .msg.gx-picked { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  #chat-messages.gx-sel .msg.gx-picked::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
  #chat-messages.gx-sel .msg .msg-tools { display: none !important; }
  #gx-selbar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--accent); background: var(--bg-2); }
  #gx-selbar.show { display: flex; }
  #gx-selbar b { flex: 1; min-width: 120px; color: var(--bright, var(--text)); }
  #gx-selbar .btn { height: 32px; }
  .composer { position: relative; }
  #gx-cc { position: absolute; top: -20px; inset-inline-end: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; display: none; }
  #gx-cc.show { display: block; }
  #gx-cc.warn { color: var(--yellow, #f0b232); }
  #gx-cc.over { color: var(--red, #f23f43); }
  #gx-undo { position: fixed; z-index: 9000; left: 50%; bottom: 96px; transform: translateX(-50%); display: none; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(0,0,0,.4); color: var(--text); font-size: 13.5px; max-width: calc(100vw - 32px); }
  #gx-undo.show { display: flex; }
  #gx-undo .bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: left; }
  #gx-undo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; color: var(--muted); }
  .gx-snips { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; margin-bottom: 12px; }
  .gx-snip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-0); }
  .gx-snip p { flex: 1; margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--text); font-size: 13.5px; max-height: 5.6em; overflow: hidden; }
  .gx-snip .btn { flex: none; height: 30px; }
  #gx-stk { position: absolute; bottom: 100%; inset-inline-start: 8px; margin-bottom: 8px; display: none; gap: 6px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0,0,0,.35); z-index: 20; }
  #gx-stk.show { display: flex; }
  #gx-stk button { width: 64px; height: 64px; padding: 4px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; }
  #gx-stk button:hover, #gx-stk button:focus-visible { border-color: var(--accent); background: var(--bg-3, rgba(127,127,127,.1)); }
  #gx-stk img { width: 100%; height: 100%; object-fit: contain; }
  #gx-stk small { align-self: center; padding: 0 6px; color: var(--muted); font-size: 11px; max-width: 90px; }
  .channel-item .gx-draft { display: inline-flex; margin-inline-start: auto; padding-inline-start: 6px; color: var(--muted); flex: none; }
  .channel-item .gx-draft svg { width: 14px; height: 14px; }
  .gx-autotr-on { color: var(--accent-hi, var(--accent)) !important; }
