.context-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.guide-trigger,
.cap-head .guide-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  inline-size: auto;
  block-size: auto;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
}
.guide-trigger:hover,
.guide-trigger:focus-visible {
  background: var(--surface-2);
}
.guide-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 1.2rem;
  block-size: 1.2rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 780;
}
.login-form .guide-trigger {
  justify-self: start;
}
.dialog-head .guide-trigger,
.cap-head .guide-trigger {
  margin-inline-start: auto;
}
.dialog-head h2,
.cap-head > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cap-head .guide-trigger {
  color: white;
  background: transparent;
  border-color: #a5c6e8;
}
.cap-head .guide-trigger:hover {
  background: #ffffff1f;
}
.cap-head [data-cap-exit],
.dialog-head [data-close] {
  flex: none;
}
#user-guide {
  width: min(32rem, calc(100% - 1rem));
  max-height: calc(100dvh - 1.5rem);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
#user-guide:modal,
#user-guide::backdrop {
  overscroll-behavior: contain;
}
#user-guide::backdrop {
  overflow: hidden;
}
.guide-head,
.guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}
.guide-head {
  border-bottom: 1px solid var(--line);
}
.guide-head h1 {
  font-size: 1.4rem;
}
.guide-body {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}
.guide-audience {
  color: var(--muted);
  font-size: 0.875rem;
}
.guide-step {
  padding: 1rem;
  border-inline-start: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface-2);
}
.guide-counter {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.guide-step h2 {
  font-size: 1.15rem;
  margin: 0.45rem 0;
}
.guide-foot {
  border-top: 1px solid var(--line);
}
.guide-foot button:disabled {
  cursor: default;
  opacity: 0.5;
}
@media (max-width: 550px) {
  .dialog-head,
  .cap-head {
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .dialog-head h2,
  .cap-head > div:first-child {
    flex: 1 1 6rem;
  }
  .context-tools {
    gap: 0.45rem;
  }
  .guide-trigger,
  .cap-head .guide-trigger {
    padding-inline: 0.55rem;
  }
  .guide-foot,
  .guide-body,
  .guide-head {
    padding-inline: 0.85rem;
  }
}
