.tour-invite {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(360px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
}

.tour-invite > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.tour-invite > p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.tour-invite-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}

.tour-overlay,
.tour-highlight,
.tour-popover {
  position: fixed;
}

.tour-overlay {
  inset: 0;
  z-index: 9990;
  pointer-events: none;
}

.tour-overlay-full {
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(1px);
  pointer-events: auto;
}

.tour-overlay-full .tour-shade {
  display: none;
}

.tour-shade {
  position: fixed;
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(1px);
  pointer-events: auto;
}

.tour-highlight {
  z-index: 9991;
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  pointer-events: auto;
  transition: top .16s ease, left .16s ease, width .16s ease, height .16s ease;
}

.tour-highlight[hidden] {
  display: none;
}

.tour-popover {
  top: 14px;
  left: 14px;
  z-index: 9992;
  width: min(370px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .24);
}

.tour-popover-centered {
  text-align: left;
}

.tour-progress {
  margin-bottom: 7px;
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tour-popover h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.tour-popover p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.tour-navigation {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.tour-skip {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.tour-skip:hover,
.tour-skip:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .tour-invite {
    top: 92px;
    right: 10px;
    bottom: auto;
    width: calc(100vw - 20px);
  }

  .tour-popover {
    left: 10px !important;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto !important;
    width: auto;
    max-height: min(54vh, 430px);
    overflow-y: auto;
  }

  .tour-actions {
    align-items: flex-end;
  }

  .tour-navigation {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
