/* A fixed shell keeps both hero actions aligned through copy feedback. */
.hero-actions {
  --hero-action-width: 240px;
  --hero-action-height: 40px;
}
.hero-actions .hero-action-enter {
  flex: 0 0 var(--hero-action-width);
  width: var(--hero-action-width);
  max-width: 100%;
}
.hero-actions .companion-button {
  width: 100%;
  height: var(--hero-action-height);
  box-sizing: border-box;
}
.legacy-setup-prompt-component {
  --prompt-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --surface: #fff;
  --accent-soft: #f6e5eb;
  color: #120f11;
}
.legacy-setup-prompt-button {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: var(--hero-action-height, 40px);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #00000026;
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.legacy-setup-agent-stack {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: 86px;
}
.legacy-setup-agent {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 2px solid var(--surface);
  border-radius: 50%;
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: transform 220ms var(--prompt-ease), opacity 150ms ease;
}
.nodebox-agent { z-index: 4; background: var(--accent-soft); }
.nodebox-agent svg { width: 25px; height: 25px; }
.terminal-agent { z-index: 3; background: #292629; color: #fffcf3; transform: translateX(18px); }
.sparkle-agent { z-index: 2; background: #b67058; color: #fff; transform: translateX(36px); font-size: 18px; }
.code-agent { z-index: 1; background: #dce7eb; color: #38536b; transform: translateX(54px); }
.legacy-setup-prompt-preview {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  white-space: nowrap;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0;
  transform: translate(5px, -50%);
  transition: transform 220ms var(--prompt-ease), opacity 150ms ease;
}
.legacy-setup-copy-action {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  color: #fff;
}
.legacy-setup-copy-action::before {
  content: '';
  position: absolute;
  inset: 0 0 0 -74px;
  border-radius: 999px;
  background: #120f11;
  clip-path: inset(0 round 15px);
  transition: clip-path 220ms var(--prompt-ease);
}
.legacy-setup-copy-label {
  position: absolute;
  right: 0;
  width: 104px;
  text-align: center;
  font: 500 12px/30px 'Instrument Sans', Arial, sans-serif;
  transition: opacity 120ms ease;
}
.legacy-setup-copy-icon { display: none; }
.legacy-setup-check-icon {
  position: absolute;
  inset: 7px;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity 150ms ease, transform 220ms var(--prompt-ease);
}
.legacy-setup-prompt-button:focus-visible { outline: 2px solid #916479; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .legacy-setup-prompt-button *, .legacy-setup-copy-action::before { transition: none; }
}

/* Match the companion action's visible shell, not just its hit area. */
.hero-actions .legacy-setup-prompt-button {
  background: #060506;
  border-color: #000000b3;
  color: #e6e6e8;
}
.legacy-setup-copy-action::before { display: none; }
.legacy-setup-copy-label {
  font-size: 14px;
  font-weight: 500;
}
.legacy-setup-agent { border-color: #060506; }
.legacy-setup-prompt-preview { font-family: 'Instrument Sans', Arial, sans-serif; font-size: 13px; }

/* Stable contents: copy feedback changes only the label. */
.hero-actions .legacy-setup-prompt-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 5px;
}
.hero-actions .legacy-setup-agent-stack {
  position: relative;
  inset: auto;
  flex: 0 0 84px;
  height: 30px;
}
.hero-actions .legacy-setup-prompt-button .legacy-setup-agent {
  transition: none;
  opacity: 1;
}
.hero-actions .legacy-setup-prompt-button .terminal-agent { transform: translateX(18px); }
.hero-actions .legacy-setup-prompt-button .sparkle-agent { transform: translateX(36px); }
.hero-actions .legacy-setup-prompt-button .code-agent { transform: translateX(54px); }
.hero-actions .legacy-setup-prompt-preview,
.hero-actions .legacy-setup-check-icon,
.hero-actions .legacy-setup-copy-icon { display: none; }
.hero-actions .legacy-setup-copy-action {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
}
.hero-actions .legacy-setup-prompt-button .legacy-setup-copy-label {
  position: static;
  width: auto;
  opacity: 1;
  transition: none;
  font: 500 16px/20px 'Instrument Sans', Arial, sans-serif;
}
.hero-actions .companion-button {
  font: 500 16px/20px 'Instrument Sans', Arial, sans-serif;
}
.hero-actions .companion-button svg { width: 16px; height: 16px; }

/* Resting state stays visible; the entrance belongs to the wrapper only. */
.hero-actions .hero-action-enter {
  opacity: 1;
  transform: none;
}
.hero-actions .legacy-setup-prompt-button {
  background: #fff;
  border-color: #dedbdd;
  color: #171417;
}
.hero-actions .legacy-setup-agent { border-color: #fff; }
.hero-actions .legacy-setup-copy-action { color: inherit; }
