/* Connect walkthroughs on the MCP page: frame, steps, cursor, controls and the shared Archer screens */
.archer-steps > li { transition: color .3s; }
.archer-howto-on .archer-steps:has(.is-current) > li:not(.is-current) { color: #8e9aa8; }
.archer-steps > li.is-current::before { background: #3ee6b0; color: #0b1118; }
.archer-howto {
  margin: 6px 0 22px; border: 1px solid #3a3935; border-radius: 12px; overflow: hidden;
  background: #262624; color: #faf9f5; box-shadow: 0 24px 60px -30px #3ee6b040;
}
.archer-howto-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  background: #1f1e1d; border-bottom: 1px solid #33322f;
}
.archer-howto-title { flex: 1; margin-right: 47px; text-align: center; font-size: 13px; color: #9c9a92; }
.archer-howto { container-type: inline-size; }
.archer-howto-body { position: relative; height: 350px; overflow: hidden; font-size: 14px; }
.archer-howto figcaption {
  padding: 8px 14px; font-size: 12px; color: #9c9a92; border-top: 1px solid #33322f;
}
.archer-howto-scene { display: none; position: absolute; inset: 0; padding: 22px 24px; flex-direction: column; gap: 14px; }
.archer-howto-scene.is-shown { display: flex; animation: archer-rise .35s ease-out; }
.archer-howto-caret { display: none; width: 1.5px; height: 16px; background: #faf9f5; animation: archer-blink 1s steps(1) infinite; }
.archer-howto [data-typing] .archer-howto-caret { display: inline-block; }
.archer-howto-archer { align-items: center; justify-content: center; background: #f4f5f7; }
.archer-howto-sheet {
  display: flex; flex-direction: column; gap: 9px; width: min(340px, 100%); box-sizing: border-box;
  padding: 20px 22px; border-radius: 12px; background: #fff; color: #43474e;
  box-shadow: 0 8px 24px -12px #1b1c1f40;
}
.archer-howto-sheet b { color: #1b1c1f; font-size: 16px; font-weight: 600; }
.archer-howto-sheet > span { font-size: 13px; line-height: 1.5; }
.archer-howto-brand { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b6f76; }
.archer-howto-go {
  padding: 8px; border-radius: 7px; background: #55ae91; color: #fff; text-align: center; font-weight: 600;
}
.archer-howto-mail-btn { background: #5ec1a1; }
.archer-howto-sheet strong { color: #1b1c1f; }

/* Archer's own sign-in pages: the "welcome" layout from archer-frontend-nuxt3 */
.archer-howto-welcome { align-items: center; justify-content: center; gap: 8px; padding: 12px; background: #00213c; }
.archer-howto-logo { width: 110px; height: auto; flex: none; }
.archer-howto-form {
  display: flex; flex-direction: column; gap: 6px; width: min(300px, 100%); box-sizing: border-box;
  padding: 14px 18px; border-radius: 14px; background: #fff; color: #00213c; font-size: 12px;
}
.archer-howto-h { text-align: center; font-size: 16px; line-height: 1.2; font-weight: 600; margin-bottom: 2px; }
.archer-howto-label { font-size: 11px; font-weight: 600; }
.archer-howto-field {
  display: flex; align-items: center; min-height: 16px; padding: 6px 8px; border-radius: 5px;
  border: 1px solid #c4c8cc; color: #1b1c1f;
}
.archer-howto-field .archer-howto-caret { height: 13px; background: #1b1c1f; }
.archer-howto-ph { color: #9aa0a6; }
.archer-howto [data-howto]:not(:empty) ~ .archer-howto-ph { display: none; }
.archer-howto-form .archer-howto-go { padding: 7px; border-radius: 5px; }
.archer-howto:not([data-email-ok]) [data-howto="continue"] { background: #bfe3d6; }
.archer-howto-or { display: flex; align-items: center; gap: 10px; color: #00213c; font-size: 11px; }
.archer-howto-or::before, .archer-howto-or::after { content: ""; flex: 1; height: 1px; background: #e0e0e0; }
.archer-howto-ms {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border-radius: 5px;
  background: #2c2c2d; color: #fff; font-weight: 600;
}
.archer-howto-ms svg { width: 13px; height: 13px; }
.archer-howto-small { text-align: center; font-size: 11px; }
.archer-howto-text { text-align: center; line-height: 1.45; }
.archer-howto-form strong { color: #00213c; }
.archer-howto-pair { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.archer-howto-back, .archer-howto-resend { padding: 6px 14px; border-radius: 5px; font-weight: 600; }
.archer-howto-back { border: 1px solid #55ae91; color: #55ae91; }
.archer-howto-resend { background: #55ae91; color: #fff; }
.archer-howto-terms { color: #c9d3dc; font-size: 10px; text-align: center; }
.archer-howto-from { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #e2e7ec; }
.archer-howto-from i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: #00213c; color: #61e2bb; font-style: normal; font-weight: 700;
}
.archer-howto-from > span { display: flex; flex-direction: column; color: #43474e; }
.archer-howto-from b { font-size: 13px; }
.archer-howto-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.archer-howto-cancel, .archer-howto-approve { padding: 7px 14px; border-radius: 7px; font-weight: 600; }
.archer-howto-cancel { border: 1px solid #d7d9dd; color: #43474e; }
.archer-howto-approve { background: #1b1c1f; color: #fff; }
.archer-howto .is-pressed { transform: scale(.96); filter: brightness(.88); transition: transform .12s, filter .12s; }
.archer-howto-cursor {
  position: absolute; top: 0; left: 0; z-index: 2; width: 20px; height: 20px; pointer-events: none;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.archer-howto:not([data-playing]) .archer-howto-cursor { display: none; }
.archer-howto-cursor svg { display: block; width: 20px; height: 20px; }
.archer-howto-cursor::after {
  content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: #3ee6b0; opacity: 0;
}
.archer-howto-cursor.is-click::after { animation: archer-howto-tap .35s ease-out; }
@keyframes archer-howto-tap { from { opacity: .55; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }

/* Icons come from the SVG sprite in mcp.html */
.archer-howto-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.archer-howto .gi {
  width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Jumping to a step replays everything before it instantly */
.archer-howto.is-fast *, .archer-howto.is-fast *::after { animation: none !important; transition: none !important; }

/* Controls under each walkthrough: restart, and one segment per step to jump to */
.archer-howto-controls {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 6px; border-top: 1px solid #33322f;
}
.archer-howto-restart {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0; border: 0;
  border-radius: 50%; background: #3d3c38; color: #faf9f5; cursor: pointer;
}
.archer-howto-restart .gi { width: 14px; height: 14px; }
.archer-howto-track { display: flex; flex: 1; gap: 4px; min-width: 0; }
.archer-howto-segment {
  display: flex; flex-direction: column; gap: 4px; min-width: 18px; padding: 4px 0 0; border: 0;
  background: none; color: #9c9a92; font: 600 10px var(--scalar-font); cursor: pointer;
}
.archer-howto-segment > i { display: block; height: 4px; border-radius: 2px; background: #3d3c38; overflow: hidden; }
.archer-howto-segment > i > b { display: block; height: 100%; width: 0; background: #3ee6b0; }
.archer-howto-segment.is-current { color: #3ee6b0; }
.archer-howto-segment:hover { color: #faf9f5; }
.archer-howto-restart:focus-visible, .archer-howto-segment:focus-visible { outline: 2px solid #3ee6b0; outline-offset: 2px; }

@media (max-width: 560px) {
  .archer-howto-body { height: 360px; }
  .archer-howto-scene { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .archer-howto *, .archer-howto *::after { animation: none !important; transition: none !important; }
}
