.user-onboarding-guide {
  --guide-arrow-left: 50%;
  position: fixed;
  z-index: 2147482000;
  pointer-events: auto;
  isolation: isolate;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #ffffff;
  color: #182230;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.user-onboarding-guide[hidden] {
  display: none;
}

.user-onboarding-guide::before,
.user-onboarding-guide::after {
  position: absolute;
  left: var(--guide-arrow-left);
  width: 0;
  height: 0;
  content: "";
  transform: translateX(-50%);
}

.user-onboarding-guide[data-placement="below"]::before {
  top: -10px;
  border-right: 9px solid transparent;
  border-bottom: 10px solid #cfd8e3;
  border-left: 9px solid transparent;
}

.user-onboarding-guide[data-placement="below"]::after {
  top: -8px;
  border-right: 8px solid transparent;
  border-bottom: 9px solid #ffffff;
  border-left: 8px solid transparent;
}

.user-onboarding-guide[data-placement="above"]::before {
  bottom: -10px;
  border-top: 10px solid #cfd8e3;
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
}

.user-onboarding-guide[data-placement="above"]::after {
  bottom: -8px;
  border-top: 9px solid #ffffff;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}

.user-onboarding-guide-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.user-onboarding-guide-close:hover,
.user-onboarding-guide-close:focus-visible {
  background: #f2f4f7;
  color: #101828;
}

.user-onboarding-guide-message {
  margin: 0;
  padding: 16px 46px 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.user-onboarding-guide-actions {
  display: flex;
  justify-content: flex-end;
  padding: 9px 12px 11px;
  border-top: 1px solid #eaecf0;
}

.user-onboarding-guide-acknowledge {
  min-width: 76px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #344054;
  border-radius: 4px;
  background: #344054;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.user-onboarding-guide-acknowledge:hover,
.user-onboarding-guide-acknowledge:focus-visible {
  border-color: #101828;
  background: #101828;
}

.user-onboarding-guide-close:focus-visible,
.user-onboarding-guide-acknowledge:focus-visible {
  outline: 2px solid #1570ef;
  outline-offset: 2px;
}

.user-onboarding-guide-target-active {
  position: relative;
  z-index: 4;
  border-radius: 4px;
  outline: 3px solid rgba(245, 179, 1, 0.82);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(253, 230, 138, 0.42);
}

@media (max-width: 640px) {
  .user-onboarding-guide {
    width: min(300px, calc(100vw - 20px));
  }

  .user-onboarding-guide-close {
    width: 38px;
    height: 38px;
  }

  .user-onboarding-guide-message {
    padding: 15px 48px 11px 14px;
    font-size: 13px;
  }

  .user-onboarding-guide-acknowledge {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-onboarding-guide,
  .user-onboarding-guide-target-active {
    scroll-behavior: auto;
  }
}
