/* typebar-20261010: Matrix typing toolbar (beta testers only; only styles elements typebar.js adds). */
.rr-typebar-wrap { margin-top: .5rem; border-radius: 10px; overflow: hidden; }
.rr-typebar { display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem; background: #050a05;
  border-top: 1px solid rgba(57,255,20,.35); box-shadow: 0 -6px 18px rgba(57,255,20,.08);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.rr-typebar__prompt { color: #39ff14; font-size: .8rem; opacity: .85; white-space: nowrap; }
.rr-typebar__prompt i { display: inline-block; width: .5em; height: 1em; background: #39ff14; vertical-align: -2px;
  margin-left: 2px; animation: rrtb-blink 1s steps(1) infinite; box-shadow: 0 0 6px #39ff14; }
@keyframes rrtb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rr-typebar__prompt i { animation: none; } }
.rr-tb { min-width: 40px; height: 36px; border-radius: 8px; border: 1px solid rgba(102,187,106,.45); background: #0b140b;
  color: #9cf59c; font: 600 .95rem/1 "JetBrains Mono", ui-monospace, monospace; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 .45rem; cursor: pointer; touch-action: manipulation; }
.rr-tb:hover, .rr-tb:focus-visible, .rr-tb.is-on { border-color: #39ff14; color: #39ff14; outline: none;
  box-shadow: 0 0 0 2px rgba(57,255,20,.18), 0 0 10px rgba(57,255,20,.25); }
.rr-typebar__count { margin-left: auto; color: #6fae6f; font-size: .72rem; white-space: nowrap; }
.rr-send { height: 36px; padding: 0 .9rem; border-radius: 999px; border: 1px solid #39ff14; background: #39ff14; color: #041004;
  font: 800 .85rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 0 12px rgba(57,255,20,.45); touch-action: manipulation; }
.rr-send:hover, .rr-send:focus-visible { outline: 2px solid #b2ff59; outline-offset: 2px; }
.rr-typebar__emoji { display: flex; gap: .3rem; padding: .35rem .5rem; background: #050a05; border-top: 1px dashed rgba(57,255,20,.25);
  overflow-x: auto; }
.rr-typebar__emoji[hidden] { display: none; }
.rr-tb-emoji { font-size: 1.25rem; line-height: 1; background: none; border: 0; padding: .2rem; cursor: pointer; touch-action: manipulation; }
.rr-tb-emoji:focus-visible { outline: 2px solid #39ff14; border-radius: 6px; }
/* The bar's Send/Post replaces the form's own button (only once the bar exists). */
form.has-typebar .dm-send-btn,
form.has-typebar.comment-compose .comment-compose-actions,
form.has-typebar[data-compose-form] .compose-actions { display: none !important; }
/* Docked above the keyboard (post/comment, touch, while typing). No transition: no glide. */
.rr-typebar-wrap.is-docked { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; margin: 0; border-radius: 0;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: #050a05;
  transition: none !important; will-change: transform; }
@media (max-width: 480px) {
  .rr-typebar { gap: .28rem; }
  .rr-tb { min-width: 36px; height: 34px; padding: 0 .3rem; }
  .rr-typebar__prompt { display: none; }
  .rr-typebar__count { font-size: .66rem; }
  .rr-send { padding: 0 .7rem; height: 34px; }
}
/* DM thread: the composer is already pinned to the keyboard; keep the bar inside it, edge to edge. */
body[data-dm-page] form.has-typebar .rr-typebar-wrap { margin-top: .4rem; }
/* One counter: the bar's. */
form.has-typebar [data-dm-count], form.has-typebar [data-dm-group-count],
form.has-typebar [data-comment-count], form.has-typebar [data-compose-count] { display: none !important; }
