@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

[data-testid="admin-support"],
[data-testid="admin-support-chats"],
[data-testid="admin-support-filters"],
[data-testid="admin-support-segments"],
[data-testid="admin-support-thread"],
[data-testid="admin-tickets-search"],
#tf-desk {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#tf-helix-fab,
#tf-helix-panel,
#tf-helix-desk,
#tf-helix-admin-tab,
#tf-helix-nudge {
  font-family: Outfit, Figtree, system-ui, sans-serif;
  box-sizing: border-box;
}

#tf-helix-fab *,
#tf-helix-panel *,
#tf-helix-desk *,
#tf-helix-admin-tab *,
#tf-helix-nudge * {
  box-sizing: border-box;
}

#tf-helix-fab {
  position: fixed !important;
  right: 1.1rem !important;
  bottom: 5.35rem !important;
  z-index: 2147483005 !important;
  width: auto;
  min-width: 3.5rem;
  height: 3.5rem;
  border: 0;
  padding: 0 0.85rem 0 0;
  cursor: pointer;
  border-radius: 1.15rem;
  background: #120b22;
  isolation: isolate;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 14px 40px rgba(88, 28, 180, 0.38);
}

#tf-helix-fab.is-off {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.hx-user-open #tf-helix-fab,
html.hx-user-open [data-testid="floating-chat"],
html.hx-user-open [data-testid="floating-chat-chatroom"],
html.hx-user-open [data-testid="floating-chat-telegram"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#tf-helix-fab .hx-word {
  position: relative;
  z-index: 1;
  font-family: Syne, Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f3ff;
}

#tf-helix-fab .hx-core {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  background: linear-gradient(145deg, #1b1033 0%, #0b1224 55%, #082026 100%);
  box-shadow: 0 14px 40px rgba(88, 28, 180, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#tf-helix-fab .hx-core::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 140deg, #c084fc, #22d3ee, #f472b6, #a78bfa, #c084fc);
  animation: hx-spin 8s linear infinite;
  opacity: 0.85;
}

#tf-helix-fab .hx-core::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1rem;
  background: radial-gradient(120% 90% at 20% 15%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(160deg, #140c28, #071018);
}

#tf-helix-fab.is-bot .hx-core::before,
#tf-helix-fab.is-bot .hx-core::after {
  display: none;
}

#tf-helix-fab .hx-bot-face,
#tf-helix-fab .hx-duty-face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.15rem;
}

#tf-helix-fab .hx-glyph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #f5f3ff;
  font-family: Syne, Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

#tf-helix-fab .hx-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #fb7185;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #07060d;
}

#tf-helix-fab.is-hot .hx-badge {
  display: inline-flex;
}

@keyframes hx-spin {
  to {
    transform: rotate(360deg);
  }
}

#tf-helix-panel {
  position: fixed;
  right: 1.05rem;
  bottom: 1.15rem;
  z-index: 2147483646;
  width: min(26.5rem, calc(100vw - 1.5rem));
  height: min(38rem, calc(100dvh - 2.4rem));
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 1.5rem;
  color: #eef2ff;
  background: rgba(8, 7, 16, 0.82);
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.35);
}

#tf-helix-panel.is-open {
  display: grid;
}

#tf-helix-panel .hx-head-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#tf-helix-panel .hx-thread {
  min-height: 0;
}

#tf-helix-panel .hx-composer {
  display: grid !important;
  visibility: visible !important;
  grid-row: 3;
  z-index: 4;
  pointer-events: auto !important;
}

#tf-helix-panel .hx-send,
#tf-helix-panel .hx-composer textarea,
#tf-helix-desk .hx-send,
#tf-helix-desk .hx-composer textarea {
  pointer-events: auto !important;
}

#tf-helix-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 10% -10%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(70% 40% at 110% 0%, rgba(34, 211, 238, 0.18), transparent 50%);
}

.hx-head,
.hx-thread,
.hx-composer {
  position: relative;
  z-index: 1;
}

.hx-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hx-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #fff;
  flex-shrink: 0;
}

.hx-av {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  color: #fff;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hx-head [data-hx="duty-av"] .hx-av {
  width: 3.15rem;
  height: 3.15rem;
}

.hx-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.hx-online-dot {
  position: absolute;
  right: 0.08rem;
  bottom: 0.08rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px #090714;
  animation: hx-pulse 1.8s ease-in-out infinite;
}

.hx-row-msg {
  display: flex;
  gap: 0.45rem;
  max-width: 92%;
  align-items: flex-end;
}

.hx-row-msg.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.hx-row-msg.is-admin {
  align-self: flex-start;
}

.hx-row-msg .hx-av {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.5rem;
}

.hx-head h2 {
  margin: 0;
  font-family: Syne, Unbounded, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hx-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #a5b4fc;
}

.hx-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hx-live i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: hx-pulse 1.8s ease-in-out infinite;
}

@keyframes hx-pulse {
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}

.hx-close {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border-radius: 999px;
  height: 2rem;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.hx-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hx-wait {
  display: none;
  margin: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
  background: rgba(6, 78, 59, 0.45);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
}

.hx-wait:not([hidden]) {
  display: block;
}

.hx-thread {
  overflow: auto;
  padding: 0.9rem 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hx-empty {
  margin: auto;
  text-align: center;
  max-width: 16rem;
  color: #c7d2fe;
  font-size: 0.86rem;
  line-height: 1.5;
}

.hx-bubble {
  max-width: 86%;
  padding: 0.65rem 0.8rem 0.5rem;
  border-radius: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.hx-bubble.is-user {
  align-self: flex-end;
  background: linear-gradient(180deg, #6d28d9, #4c1d95);
  color: #faf5ff;
  border-bottom-right-radius: 0.3rem;
}

.hx-bubble.is-admin {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 0.3rem;
}

.hx-meta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.hx-thinking {
  font-style: italic;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.hx-bubble-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 86%;
}

.hx-bubble-col .hx-bubble {
  max-width: 100%;
}

.hx-msg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0.28rem 0 0 0.1rem;
}

.hx-request,
.hx-lang {
  margin: 0;
  border-radius: 999px;
  height: auto;
  padding: 0.18rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  width: auto;
  max-width: max-content;
}

.hx-request {
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(6, 78, 59, 0.42);
  color: #bbf7d0;
}

.hx-lang {
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(46, 16, 101, 0.45);
  color: #ddd6fe;
}

.hx-request:hover,
.hx-lang:hover {
  filter: brightness(1.08);
}

.hx-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 5, 14, 0.55);
}

.hx-composer textarea {
  resize: none;
  min-height: 2.7rem;
  max-height: 7.5rem;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 0.95rem;
  padding: 0.65rem 0.75rem;
  background: rgba(15, 12, 32, 0.85);
  color: #f8fafc;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.hx-composer textarea:focus {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.hx-send {
  align-self: end;
  height: 2.7rem;
  min-width: 4.4rem;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  color: #071018;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.hx-send:disabled {
  opacity: 0.45;
  cursor: default;
}

#tf-helix-admin-tab {
  position: fixed;
  right: 1.1rem;
  top: 4.7rem;
  z-index: 2147483646;
  display: none;
  writing-mode: horizontal-tb;
  transform: none;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #1e1238, #0b1220);
  color: #ede9fe;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#tf-helix-admin-tab.is-on {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#tf-helix-admin-tab .hx-badge {
  writing-mode: horizontal-tb;
  transform: none;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fb7185;
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
}

#tf-helix-admin-tab.is-hot .hx-badge {
  display: inline-flex;
}

#tf-helix-desk {
  position: fixed;
  inset: 0;
  z-index: 2147483020;
  display: none;
  background: rgba(3, 2, 8, 0.55);
  backdrop-filter: blur(8px);
}

#tf-helix-desk.is-open {
  display: block;
}

#tf-helix-desk .hx-shell {
  position: absolute;
  inset: 0.7rem;
  display: grid;
  grid-template-columns: minmax(16rem, 21rem) 1fr;
  min-height: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(124, 58, 237, 0.28), transparent 50%),
    radial-gradient(60% 40% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 46%),
    #090714;
  border: 1px solid rgba(196, 181, 253, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  color: #eef2ff;
}

#tf-helix-desk .hx-rail {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#tf-helix-desk .hx-rail-head {
  padding: 1rem 1rem 0.55rem;
}

#tf-helix-desk .hx-rail-head h2 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: 1.05rem;
}

#tf-helix-desk .hx-rail-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #a5b4fc;
}

#tf-helix-desk .hx-sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  max-height: 9.5rem;
  overflow: auto;
  margin: 0 0.75rem 0.55rem;
  padding: 0 0.1rem 0.15rem;
}

#tf-helix-desk .hx-sort {
  border: 1px solid rgba(196, 181, 253, 0.22);
  background: rgba(15, 12, 32, 0.72);
  color: #c7d2fe;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1.2;
}

#tf-helix-desk .hx-sort.is-on {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(8, 47, 73, 0.7);
  color: #e0f2fe;
}

#tf-helix-desk .hx-sort em {
  font-style: normal;
  margin-left: 0.2rem;
  color: #67e8f9;
}

#tf-helix-desk .hx-search {
  margin: 0 0.85rem 0.7rem;
  width: calc(100% - 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
}

#tf-helix-desk .hx-list {
  overflow: auto;
  padding: 0 0.5rem 0.7rem;
}

.hx-row {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0.9rem;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
}

.hx-row:hover,
.hx-row.is-on {
  background: rgba(124, 58, 237, 0.18);
}

.hx-row strong {
  display: block;
  font-size: 0.84rem;
}

.hx-row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: #c4b5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-row em {
  float: right;
  font-style: normal;
  font-size: 0.64rem;
  color: #fb7185;
  font-weight: 700;
}

#tf-helix-desk .hx-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "head"
    "tools"
    "duty"
    "thread"
    "composer";
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#tf-helix-desk .hx-main-head {
  grid-area: head;
}

#tf-helix-desk .hx-atools {
  grid-area: tools;
}

#tf-helix-desk .hx-main > .hx-head {
  grid-area: duty;
  min-width: 0;
}

#tf-helix-desk .hx-thread {
  grid-area: thread;
  min-height: 0;
  overflow: auto;
}

#tf-helix-desk .hx-composer {
  grid-area: composer;
  display: grid !important;
  visibility: visible !important;
  z-index: 4;
}

#tf-helix-desk .hx-main-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#tf-helix-desk .hx-main-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

#tf-helix-desk .hx-main-head p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: #a5b4fc;
}

#tf-helix-desk .hx-atools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 20, 0.35);
}

#tf-helix-desk .hx-atools[hidden] {
  display: none;
}

#tf-helix-desk .hx-act {
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(15, 12, 32, 0.72);
  color: #e9d5ff;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

#tf-helix-desk .hx-act:hover {
  border-color: rgba(167, 139, 250, 0.7);
  color: #fff;
}

#tf-helix-desk .hx-act:disabled {
  opacity: 0.4;
  cursor: default;
}

#tf-helix-desk .hx-act-warn {
  border-color: rgba(251, 113, 133, 0.45);
  color: #fecdd3;
}

#tf-helix-nudge {
  position: fixed;
  right: 1.1rem;
  bottom: 10.4rem;
  z-index: 2147483011;
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  width: min(17.6rem, calc(100vw - 2.2rem));
  margin: 0;
  padding: 0.7rem 1.7rem 0.75rem 0.7rem;
  border: 0;
  border-radius: 1.15rem;
  text-align: left;
  cursor: pointer;
  color: #f5f3ff;
  background: #120b22;
  box-shadow: 0 16px 40px rgba(8, 6, 20, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#tf-helix-nudge.is-on {
  display: flex;
}

#tf-helix-nudge .hx-av-wrap {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
}

#tf-helix-nudge .hx-nudge-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

#tf-helix-nudge b {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
}

#tf-helix-nudge em {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #ede9fe;
}

#tf-helix-nudge .hx-nudge-x {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.1rem;
  text-align: center;
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 0.95rem;
}

#tf-helix-nudge .hx-nudge-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 800px) {
  #tf-helix-desk .hx-shell {
    grid-template-columns: 1fr;
    inset: 0;
    border-radius: 0;
  }
  #tf-helix-desk.is-thread .hx-rail {
    display: none;
  }
  #tf-helix-desk:not(.is-thread) .hx-main {
    display: none;
  }
  #tf-helix-panel {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
    bottom: 0.7rem;
    height: min(34rem, calc(100dvh - 1.5rem));
  }
  #tf-helix-fab {
    bottom: 5.1rem !important;
  }
  #tf-helix-nudge {
    right: 0.6rem;
    bottom: 9.7rem;
  }
}

@media (min-width: 801px) {
  #tf-helix-panel.is-open {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: min(42rem, calc(100dvh - 2.5rem)) !important;
    max-height: calc(100dvh - 2.5rem) !important;
    overflow: hidden !important;
  }
  #tf-helix-panel .hx-head-wrap {
    min-width: 0;
    max-height: 42%;
    overflow: visible;
  }
  #tf-helix-panel .hx-thread {
    min-height: 0 !important;
    overflow: auto !important;
  }
  #tf-helix-panel .hx-composer {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: end;
    z-index: 8 !important;
    background: rgba(6, 5, 14, 0.94) !important;
  }
  #tf-helix-panel .hx-tools {
    grid-column: 1;
    grid-row: 1;
  }
  #tf-helix-panel .hx-composer textarea {
    grid-column: 2;
    grid-row: 1;
    min-width: 0 !important;
    width: 100%;
  }
  #tf-helix-panel .hx-send {
    grid-column: 3;
    grid-row: 1;
    flex-shrink: 0;
    justify-self: end;
  }
  #tf-helix-desk .hx-shell {
    height: calc(100dvh - 1.4rem) !important;
    max-height: calc(100dvh - 1.4rem) !important;
    min-height: 0 !important;
  }
  #tf-helix-desk .hx-rail {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  }
  #tf-helix-desk .hx-list {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  #tf-helix-desk .hx-main {
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #tf-helix-desk .hx-thread {
    min-height: 0 !important;
    overflow: auto !important;
  }
  #tf-helix-desk .hx-composer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end;
    z-index: 8 !important;
    background: rgba(6, 5, 14, 0.94) !important;
  }
  #tf-helix-desk .hx-composer textarea {
    min-width: 0 !important;
    width: 100%;
  }
  #tf-helix-desk .hx-send {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
    justify-self: end;
    min-width: 4.4rem;
  }
}

.hx-live-ask {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.75rem 0.35rem;
}

#tf-helix-panel .hx-head {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-right: 4.6rem !important;
}

#tf-helix-panel .hx-close {
  position: absolute !important;
  top: 0.55rem;
  right: 0.55rem;
  margin-left: 0;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 3.6rem;
  height: 2.15rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #c4b5fd;
  background: #ede9fe !important;
  color: #1e1b4b !important;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 40 !important;
}

#tf-helix-panel .hx-wait:not([hidden]) {
  display: block !important;
  min-height: 1.7rem;
  visibility: visible !important;
}

#tf-helix-panel [data-hx="duty-av"],
#tf-helix-panel [data-hx="duty-name"],
#tf-helix-panel [data-hx="duty-role"] {
  visibility: visible !important;
  opacity: 1 !important;
}

#tf-helix-panel [data-hx="duty-av"] {
  flex-shrink: 0;
  min-width: 3.15rem;
  min-height: 3.15rem;
}
#tf-helix-fab {
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem 0 0;
  gap: 0.4rem;
  border-radius: 0.9rem;
}

#tf-helix-fab .hx-core {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
}

#tf-helix-fab .hx-word {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

#tf-helix-fab .hx-sup-ico {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.675rem;
  color: #f5f3ff;
}

#tf-helix-menu {
  position: fixed;
  right: 1.1rem;
  bottom: 8.6rem;
  z-index: 2147483012;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  width: min(17.6rem, calc(100vw - 2.2rem));
  font-family: Outfit, Figtree, system-ui, sans-serif;
}

#tf-helix-menu.is-on {
  display: flex;
}

#tf-helix-menu .hx-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  border: 0;
  border-radius: 1.15rem;
  text-align: left;
  cursor: pointer;
  color: #f5f3ff;
  background: #120b22;
  box-shadow: 0 16px 40px rgba(8, 6, 20, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#tf-helix-menu .hx-pick:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(88, 28, 180, 0.45), inset 0 0 0 1px rgba(196, 181, 253, 0.35);
}

#tf-helix-menu .hx-av-wrap {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
}

#tf-helix-menu .hx-pick-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

#tf-helix-menu b {
  font-family: Syne, Unbounded, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  color: #f5f3ff;
}

#tf-helix-menu em {
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.3;
  color: #5eead4;
}

#tf-helix-menu .hx-pick[data-ch="live"] em {
  color: #c4b5fd;
}

#tf-helix-menu .hx-pick-badge {
  margin-left: auto;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #f472b6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3rem;
  text-align: center;
}

#tf-helix-menu .hx-pick-badge[hidden] {
  display: none;
}

#tf-helix-nudge {
  bottom: 8.6rem;
}

#tf-helix-panel .hx-golive {
  display: block;
  margin: 0.2rem 0 0.6rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #ddd6fe;
  font: 700 0.78rem Outfit, Figtree, system-ui, sans-serif;
  cursor: pointer;
}

#tf-helix-panel .hx-golive:hover {
  background: rgba(124, 58, 237, 0.32);
}

#tf-helix-panel[data-ch="bot"] .hx-tools {
  display: none !important;
}

@media (min-width: 801px) {
  #tf-helix-panel[data-ch="bot"] .hx-composer {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  #tf-helix-panel[data-ch="bot"] .hx-composer textarea {
    grid-column: 1;
  }
  #tf-helix-panel[data-ch="bot"] .hx-send {
    grid-column: 2;
  }
}

@media (max-width: 800px) {
  #tf-helix-menu {
    right: 0.6rem;
    bottom: 8.3rem;
  }
  #tf-helix-nudge {
    bottom: 8.3rem !important;
  }
}
/* s08 -- tighten the floating user chat launcher: smaller, shorter pill */
#tf-helix-fab {
  height: 2.3rem !important;
  min-width: 2.3rem !important;
  padding: 0 0.5rem 0 0 !important;
  gap: 0.28rem !important;
  border-radius: 0.8rem !important;
}

#tf-helix-fab .hx-core {
  width: 2.3rem !important;
  height: 2.3rem !important;
  border-radius: 0.8rem !important;
}

#tf-helix-fab .hx-core::after {
  border-radius: 0.68rem !important;
}

#tf-helix-fab .hx-bot-face,
#tf-helix-fab .hx-duty-face {
  border-radius: 0.8rem !important;
}

#tf-helix-fab .hx-word {
  font-size: 0.58rem !important;
  letter-spacing: 0.03em !important;
}

#tf-helix-fab .hx-glyph {
  font-size: 0.6rem !important;
}

#tf-helix-fab .hx-badge {
  top: -0.26rem !important;
  right: -0.26rem !important;
  min-width: 0.95rem !important;
  height: 0.95rem !important;
  padding: 0 0.2rem !important;
  font-size: 0.56rem !important;
}
