/* Overview setup guide steps. Rows are cloned from native markup, so only motion and the extra buttons are styled here. */
.ht-setup-guide { animation: ht-guide-arrive .32s cubic-bezier(.2, .8, .2, 1) both; }

.ht-setup-guide .ht-guide-row { flex-wrap: wrap; row-gap: 8px; }

/* Link rows (steps 1 and 4): nudge the arrow on hover, press in on click. */
.ht-setup-guide .ht-guide-link { transition: background-color .18s ease, transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease; }
.ht-setup-guide .ht-guide-link > svg:last-child { transition: transform .24s cubic-bezier(.2, .8, .2, 1), color .18s ease; }
.ht-setup-guide .ht-guide-link:hover > svg:last-child,
.ht-setup-guide .ht-guide-link:focus-visible > svg:last-child { transform: translateX(3px); color: var(--primary, #3ea4ec); }
.ht-setup-guide .ht-guide-link:active { transform: scale(.985); }

/* Step 2: the same buttons as the /keys "客户端下载" card, as outlined chips that wrap
   (names stay visible: touch screens get no hover tooltip). */
.ht-setup-guide .ht-guide-clients { flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 1; }
.ht-setup-guide .ht-guide-clients .ht-client-link {
  height: 28px;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: calc(var(--radius, 1rem) - 6px);
  background: var(--background, #fff);
}
.dark .ht-setup-guide .ht-guide-clients .ht-client-link {
  border-color: var(--input, #3a3a3a);
  background: color-mix(in oklch, var(--input, #3a3a3a) 30%, transparent);
}
.ht-setup-guide .ht-guide-clients .ht-client-link:hover,
.ht-setup-guide .ht-guide-clients .ht-client-link:focus-visible {
  border-color: color-mix(in oklch, var(--ht-client-accent) 40%, var(--border, #e8e8e8));
}

/* Step 3: help prompt and same-console integration docs. */
.ht-setup-guide .ht-guide-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--muted-foreground, #737373);
  font-size: 13px;
}
.ht-setup-guide .ht-guide-docs {
  position: relative;
  isolation: isolate;
  flex: none;
  gap: 6px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s cubic-bezier(.2, .8, .2, 1);
}
.ht-setup-guide .ht-guide-docs-icon {
  width: 14px;
  height: 14px;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.ht-setup-guide .ht-guide-docs:hover,
.ht-setup-guide .ht-guide-docs:focus-visible {
  color: var(--primary, #3ea4ec);
  border-color: color-mix(in oklch, var(--primary, #3ea4ec) 40%, var(--border, #e8e8e8));
  background-color: color-mix(in oklch, var(--primary, #3ea4ec) 10%, var(--background, #fff));
}
.dark .ht-setup-guide .ht-guide-docs:hover,
.dark .ht-setup-guide .ht-guide-docs:focus-visible {
  color: color-mix(in oklch, var(--primary, #0e72bc) 62%, #fff);
  background-color: color-mix(in oklch, var(--primary, #0e72bc) 22%, transparent);
}
.ht-setup-guide .ht-guide-docs:hover .ht-guide-docs-icon { transform: rotate(-8deg) scale(1.12); }
.ht-setup-guide .ht-guide-docs:active { transform: scale(.94); }
.ht-setup-guide .ht-guide-docs::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.ht-setup-guide .ht-guide-docs.is-pressed::after { animation: ht-guide-ripple .5s ease-out; }

@keyframes ht-guide-arrive {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes ht-guide-ripple {
  0% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary, #3ea4ec) 45%, transparent); }
  100% { opacity: 0; box-shadow: 0 0 0 8px color-mix(in oklch, var(--primary, #3ea4ec) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .ht-setup-guide,
  .ht-setup-guide *,
  .ht-setup-guide .ht-guide-docs::after {
    animation: none !important;
    transition: none !important;
  }
}
