:root {
  --tt-tooltip-accent: var(--tt-accent, #6fa58f);
  --tt-tooltip-bg-top: rgba(27, 34, 40, 0.96);
  --tt-tooltip-bg-bottom: rgba(14, 18, 22, 0.98);
  --tt-tooltip-border: rgba(148, 163, 184, 0.18);
  --tt-tooltip-text: #cbd5e1;
  --tt-tooltip-strong: #f8fafc;
  --tt-tooltip-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #7b8794;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: help;
  user-select: none;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

button.tt-icon {
  appearance: none;
  -webkit-appearance: none;
}

.tt-icon:hover,
.tt-icon:focus-visible {
  border-color: rgba(var(--tt-accent-rgb, 111, 165, 143), 0.34);
  background:
    linear-gradient(180deg, rgba(var(--tt-accent-rgb, 111, 165, 143), 0.2), rgba(var(--tt-accent-rgb, 111, 165, 143), 0.1)),
    rgba(var(--tt-accent-rgb, 111, 165, 143), 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(var(--tt-accent-rgb, 111, 165, 143), 0.08);
  color: #dce9f2;
  outline: none;
  transform: translateY(-1px);
}

#tt.tt-floating-tooltip {
  position: fixed;
  left: -9999px;
  top: -9999px;
  z-index: 9999;
  pointer-events: none;
  display: block;
  visibility: hidden;
  max-width: min(320px, calc(100vw - 20px));
  padding: 10px 12px;
  border: 1px solid var(--tt-tooltip-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at top left, rgba(var(--tt-accent-rgb, 111, 165, 143), 0.16), transparent 48%),
    linear-gradient(180deg, var(--tt-tooltip-bg-top), var(--tt-tooltip-bg-bottom));
  box-shadow: var(--tt-tooltip-shadow);
  color: var(--tt-tooltip-text);
  font-size: 0.74rem;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  transform: translateY(3px) scale(0.985);
  transition:
    opacity 120ms ease,
    transform 160ms ease,
    visibility 0ms linear 160ms;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

#tt.tt-floating-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 120ms ease,
    transform 160ms ease,
    visibility 0ms linear 0ms;
}

#tt.tt-floating-tooltip strong {
  color: var(--tt-tooltip-strong);
  font-weight: 600;
}

#tt.tt-floating-tooltip a {
  color: var(--tt-tooltip-accent);
}
