.chat-main {
  --trejj-scroll-bottom-offset: 104px;
}

.jump-to-bottom {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: var(--trejj-scroll-bottom-offset);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--violet) 58%, var(--line));
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 90%, #fff 10%), var(--panel2));
  color: var(--text);
  box-shadow: 0 14px 40px #0008, 0 0 0 4px color-mix(in srgb, var(--bg) 68%, transparent);
  cursor: pointer;
  opacity: .96;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.jump-to-bottom[hidden] {
  display: none;
}

.jump-to-bottom svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jump-to-bottom:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: var(--violet);
  box-shadow: 0 17px 46px #0009, 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent);
}

.jump-to-bottom:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pink) 72%, #fff);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .jump-to-bottom {
    width: 44px;
    height: 44px;
    box-shadow: 0 11px 32px #0008, 0 0 0 3px color-mix(in srgb, var(--bg) 72%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jump-to-bottom {
    transition: none;
  }
}

@media (forced-colors: active) {
  .jump-to-bottom {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
  }
}
