/* The layout of the guide steps and their pictures. Every look inside them comes from the primitives in panel.css. */
.guide-steps {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* A picture of the browser's own toolbar and menus, indented under the text of its step. */
.guide-shot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: 74px;
  margin-left: 28px;
  padding: var(--space-3);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-2);
  background: var(--ink-2);
}

.guide-shot .ui-field--readonly {
  flex: 1;
  min-width: 0;
  height: var(--control-height-small);
  border-radius: var(--radius-pill);
}

.guide-shot__goui {
  position: relative;
  display: inline-flex;
  padding: var(--space-2);
  border-radius: var(--radius-1);
}

.guide-shot__goui .ui-badge {
  position: absolute;
  right: -10px;
  bottom: -7px;
  height: 13px;
  padding: 0 3px;
  background: var(--good);
  color: var(--ink-0);
  font-size: 8px;
}

.guide-shot__menu {
  width: 100%;
  padding: var(--space-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-2);
  background: var(--ink-1);
}

.guide-shot__menu img {
  border-radius: 3px;
}

/* The pointer rests on the goui icon, the third item from the right of the toolbar. */
.guide-shot__cursor {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 16px;
  height: 16px;
  fill: var(--text-1);
  stroke: var(--ink-0);
  stroke-width: 1.5;
}

/* The thing to press, ringed in the accent colour. */
.guide-press {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    outline-color: var(--accent-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-press {
    animation: none;
  }
}
