[data-testid="chatroom-send-blocked"] {
  display: none !important;
}

[data-testid="chatroom-telegram-cta"] {
  display: inline-flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

[data-testid="chatroom-page"] {
  position: relative;
}

#tf-chat-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 8;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 23, 38, 0.92);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

#tf-chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-testid="chatroom-composer"] {
  display: flex;
  flex-direction: column;
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #0b1726;
  flex-shrink: 0;
}

[data-testid="chatroom-composer"] > form {
  order: 1;
}

#tf-chat-points {
  display: none;
  order: 2;
  margin-top: 0.75rem;
  margin-bottom: 0;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(4, 47, 46, 0.35);
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
}

#tf-chat-points.is-on {
  display: block;
}

#tf-chat-points .tf-cp-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #99f6e4;
}

#tf-chat-points .tf-cp-kicker span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-balance {
  margin: 0.35rem 0 0;
  color: #f8fafc;
  font-size: 0.95rem;
}

#tf-chat-points .tf-cp-note,
#tf-chat-points .tf-cp-wait,
#tf-chat-points .tf-cp-cost {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-reason {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fde68a;
}

#tf-chat-points .tf-cp-buy {
  margin-top: 0.7rem;
}

#tf-chat-points .tf-cp-buy label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}

#tf-chat-points .tf-cp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

#tf-chat-points .tf-cp-row input {
  width: 7.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #04111c;
  color: #fff;
  padding: 0.5rem 0.65rem;
}

#tf-chat-points .tf-cp-row button {
  border: 0;
  border-radius: 999px;
  background: #2dd4bf;
  color: #042f2e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  pointer-events: auto;
}

#tf-chat-points .tf-cp-status {
  margin: 0.45rem 0 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #94a3b8;
}

#tf-chat-points .tf-cp-status.is-ok {
  color: #99f6e4;
}

#tf-chat-points .tf-cp-status.is-err {
  color: #fecaca;
}

#tf-chat-points .tf-cp-topup {
  display: inline-block;
  margin-top: 0.45rem;
  color: #7dd3c7;
  font-size: 0.78rem;
  font-weight: 600;
}

.tf-chat-tr {
  display: inline-block;
  margin-top: 0.18rem;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3c7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  opacity: 0.92;
}

.tf-chat-tr:hover {
  opacity: 1;
  text-decoration: none;
  color: #99f6e4;
}

.tf-chat-tr-out {
  display: none;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #99f6e4;
  white-space: pre-wrap;
}

.tf-chat-tr-out.is-on {
  display: block;
}

.tf-chat-unread {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.55rem;
  color: #5eead4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tf-chat-unread::before,
.tf-chat-unread::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(45, 212, 191, 0.35);
}

[data-testid="chatroom-page"] {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

[data-testid="chatroom-messages"],
#tf-chat-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 14rem;
  max-height: min(62vh, 40rem);
  overflow-y: auto;
  overflow-x: hidden;
}

html.tf-chat-feed-on [data-testid="chatroom-messages"] {
  display: none !important;
}

#tf-chat-latest {
  position: sticky;
  left: 0.4rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 0;
  margin: 0.3rem 0 0.45rem 0.35rem;
  margin-right: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 20, 34, 0.35);
  color: #7dd3c7;
  opacity: 0.4;
  cursor: pointer;
  box-shadow: none;
  z-index: 6;
  float: none;
}

#tf-chat-latest svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

#tf-chat-latest[hidden] {
  display: none !important;
}

#tf-chat-latest:hover {
  opacity: 0.82;
  background: rgba(8, 20, 34, 0.5);
}

/* A payout record, shown in the room exactly as the channel posts it. The
   block is rendered verbatim, so it takes a monospaced face to keep the
   columns of the record aligned. A request is amber — nothing cleared yet —
   and a settlement is green. */
.tf-chat-tx {
  border-color: rgba(45, 212, 191, 0.22);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.72), rgba(6, 15, 26, 0.86));
}

.tf-chat-tx[data-stage="request"] {
  border-color: rgba(250, 204, 21, 0.26);
}

.tf-chat-tx[data-stage="settle"] {
  border-color: rgba(34, 197, 94, 0.28);
}

.tf-chat-tx-block {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #cbe7e2;
  white-space: pre-wrap;
  word-break: break-word;
}

/* A link lands in the room as text — the verify pointer on a settlement, or
   anything a member pastes. It keeps the monospaced rhythm of a payout record
   but reads as something that can be opened. */
.tf-chat-link {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tf-chat-link:hover,
.tf-chat-link:focus-visible {
  color: #99f6e4;
}

/* A reply quotes the line it answers, kept short above the new text so the room
   reads as a conversation rather than two loose lines. */
.tf-chat-quote {
  margin: 0.4rem 0 0;
  padding: 0.3rem 0.55rem;
  border-left: 2px solid rgba(45, 212, 191, 0.45);
  border-radius: 0 0.4rem 0.4rem 0;
  background: rgba(8, 20, 34, 0.4);
  color: #93b8b1;
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: hidden;
}

.tf-chat-quote[hidden] {
  display: none;
}

.tf-chat-quote-name {
  color: #5eead4;
  font-weight: 700;
}

.tf-chat-acts {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.tf-chat-act {
  border: 0;
  padding: 0;
  background: none;
  color: #7dd3c7;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.tf-chat-act:hover,
.tf-chat-act:focus-visible {
  color: #99f6e4;
  text-decoration: underline;
}

.tf-chat-act[disabled] {
  opacity: 0.5;
  cursor: default;
  text-decoration: none;
}

.tf-chat-act-hide {
  color: #fca5a5;
}

.tf-chat-act-hide:hover,
.tf-chat-act-hide:focus-visible {
  color: #fecaca;
}

/* The strip that says which line is being answered, sitting right above the
   composer so the context is visible while typing. */
#tf-chat-reply {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid rgba(45, 212, 191, 0.5);
  background: rgba(8, 20, 34, 0.45);
  color: #93b8b1;
  font-size: 0.76rem;
}

#tf-chat-reply.is-on {
  display: flex;
}

#tf-chat-reply .tf-chat-reply-to {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tf-chat-reply .tf-chat-reply-x {
  border: 0;
  background: none;
  color: #7dd3c7;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

#tf-chat-reply .tf-chat-reply-x:hover {
  color: #99f6e4;
}
#tf-chat-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 4.6rem 1rem 6.5rem;
  background: #07111c;
  color: #e2e8f0;
}

#tf-chat-page h1 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

#tf-room-fab,
#tf-tg-fab {
  display: none !important;
}

#tf-social-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.15rem;
  z-index: 2147483004;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 0;
  border-radius: 1.05rem;
  background: #0b1726;
  color: #99f6e4;
  cursor: pointer;
  pointer-events: auto;
  visibility: visible;
}

#tf-social-fab svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  margin: 0 auto;
}

#tf-social-fab.is-off,
html.hx-user-open #tf-social-fab,
html.hx-user-open #tf-social-pick {
  display: none !important;
}

#tf-social-pick {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 1.1rem 5.2rem;
  background: rgba(4, 10, 18, 0.62);
}

#tf-social-pick.is-on {
  display: flex !important;
}

#tf-social-pick .sheet {
  position: relative;
  width: min(18rem, calc(100vw - 2.2rem));
  padding: 1.05rem 1rem 1rem;
  border-radius: 1.1rem;
  background: #0b1726;
  color: #e2e8f0;
  font: 600 0.92rem Figtree, sans-serif;
}

#tf-social-pick .sheet p {
  margin: 0 1.6rem 0.85rem 0;
  font: 800 0.78rem Unbounded, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #99f6e4;
}

#tf-social-pick .sheet .x {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
}

#tf-social-pick .sheet [data-tf="go-room"],
#tf-social-pick .sheet [data-tf="go-tg"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.7rem;
  margin: 0 0 0.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: #122337;
  color: #f8fafc;
  font: 800 0.78rem Unbounded, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

#tf-social-pick .sheet [data-tf="go-tg"] {
  margin: 0;
  background: #0e3a4a;
  color: #99f6e4;
}
