.tg-float {
  position: fixed;
  z-index: 24;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: 86px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  isolation: isolate;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}

.tg-float::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(78, 218, 255, .2), rgba(150, 89, 255, .88), rgba(255, 255, 255, .82), rgba(34, 158, 217, .94), rgba(78, 218, 255, .2));
  box-shadow: 0 14px 36px rgba(6, 3, 32, .52), 0 0 22px rgba(84, 109, 255, .34);
  transition: transform .22s ease, filter .22s ease;
}

.tg-float::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  background: #171044;
}

.tg-float__orb {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .46), transparent 22%),
    linear-gradient(145deg, #58c8f3 0%, #229ed9 48%, #147bb8 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .58),
    inset 0 -8px 16px rgba(5, 45, 106, .2),
    0 7px 18px rgba(0, 0, 0, .28);
  display: grid;
  place-items: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}

.tg-float__orb svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  filter: drop-shadow(0 3px 5px rgba(3, 54, 105, .28));
  transform: translate(-1px, 1px) rotate(-2deg);
}

.tg-float__status {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #171044;
  border-radius: 50%;
  background: #3ee69a;
  box-shadow: 0 0 0 2px rgba(62, 230, 154, .18), 0 0 10px rgba(62, 230, 154, .55);
}

.tg-float__label {
  position: absolute;
  right: 43px;
  top: 5px;
  min-width: 96px;
  padding: 7px 15px 7px 10px;
  border: 1px solid rgba(139, 123, 255, .5);
  border-radius: 12px 5px 5px 12px;
  background: linear-gradient(135deg, rgba(21, 13, 64, .96), rgba(42, 26, 104, .94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 9px 24px rgba(2, 0, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px) scale(.96);
  transform-origin: right center;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.tg-float--label-right .tg-float__label {
  right: auto;
  left: 43px;
  padding-right: 10px;
  padding-left: 15px;
  border-radius: 5px 12px 12px 5px;
  transform-origin: left center;
}

.tg-float--collapsed {
  width: 44px;
  height: 44px;
  overflow: visible;
  border-radius: 50%;
}

.tg-float--collapsed::before,
.tg-float--collapsed::after,
.tg-float--collapsed .tg-float__orb {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  right: auto;
}

.tg-float--collapsed .tg-float__status {
  right: 7px;
  top: 7px;
}

.tg-float--collapsed .tg-float__label {
  display: none;
}

.tg-support-dock {
  position: fixed;
  z-index: 23;
  top: 8px;
  right: max(0px, calc((100vw - 430px) / 2));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 44px;
  height: 44px;
  padding-top: 0;
}

.tg-support-dock .tg-float--docked {
  position: relative;
  inset: auto;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: visible;
  border-radius: 50%;
}

.tg-support-dock .tg-float--docked .tg-float__label {
  display: none;
}

.tg-support-dock .tg-float--docked::before,
.tg-support-dock .tg-float--docked::after,
.tg-support-dock .tg-float--docked .tg-float__orb {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  right: auto;
}

.tg-support-dock .tg-float--docked .tg-float__status {
  right: 7px;
  top: 7px;
}

.shell.tg-support-edge-active .screen {
  width: calc(100% - 44px);
}

.tg-float__label strong,
.tg-float__label small {
  display: block;
  line-height: 1.05;
}

.tg-float__label strong {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

.tg-float__label small {
  margin-top: 4px;
  color: #75d8ff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}

.tg-float:hover::before,
.tg-float:focus-visible::before {
  transform: rotate(12deg) scale(1.04);
  filter: saturate(1.12);
}

.tg-float:hover .tg-float__label,
.tg-float:focus .tg-float__label,
.tg-float:focus-visible .tg-float__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.tg-float:hover .tg-float__orb,
.tg-float:focus-visible .tg-float__orb {
  transform: translateY(-2px) scale(1.035);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .64), inset 0 -8px 16px rgba(5, 45, 106, .2), 0 12px 24px rgba(0, 0, 0, .34);
}

.tg-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .92);
  outline-offset: 6px;
}

.tg-float:active .tg-float__orb {
  transform: scale(.93);
}

.shell:has(.screen.login) .tg-float { bottom: 24px; }

@media (max-width: 500px) {
  .tg-float { right: 12px; }
  .tg-support-dock { right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .tg-float__status {
    animation: tg-status-pulse 2.2s ease-out infinite;
  }
}

@keyframes tg-status-pulse {
  0%, 48%, 100% { box-shadow: 0 0 0 2px rgba(62, 230, 154, .18), 0 0 10px rgba(62, 230, 154, .55); }
  68% { box-shadow: 0 0 0 7px rgba(62, 230, 154, 0), 0 0 14px rgba(62, 230, 154, .72); }
}
