.axe-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 999px;
  background: var(--darkened-bg, #f3f4f6);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.axe-help-btn:hover,
.axe-help-btn:focus {
  outline: 2px solid var(--link-fg, #417690);
  outline-offset: 1px;
}
.axe-help-dialog {
  max-width: 36rem;
  width: calc(100% - 2rem);
  max-height: min(88vh, 44rem);
  border: 1px solid var(--hairline-color, #dbe3ea);
  border-radius: 8px;
  padding: 0;
  background: var(--body-bg, #fff);
  color: var(--body-fg, #333);
  color-scheme: inherit;
}
.axe-help-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.axe-help-dialog--wide {
  max-width: 42rem;
}
.axe-help-dialog::backdrop {
  background: rgb(15 23 42 / 0.45);
}
.axe-help-dialog header,
.axe-help-dialog footer {
  padding: 0.75rem 1rem;
  background: var(--darkened-bg, #f8fafc);
}
.axe-help-dialog header {
  border-bottom: 1px solid var(--hairline-color, #e5e7eb);
  font-weight: 600;
}
.axe-help-dialog .axe-help-body {
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow: auto;
}
.axe-help-dialog .axe-help-lead {
  font-size: 0.95rem;
}
.axe-help-dialog h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.axe-help-dialog h3:first-of-type {
  margin-top: 0.25rem;
}
.axe-help-dialog p {
  margin: 0 0 0.75rem;
}
.axe-help-dialog pre {
  margin: 0;
  padding: 0.75rem;
  overflow: auto;
  background: var(--darkened-bg, #f3f4f6);
  color: var(--body-loud-color, var(--body-fg, #111827));
  border: 1px solid var(--hairline-color, #e5e7eb);
  border-radius: 6px;
  font-size: 0.8rem;
}
.axe-help-dialog footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  border-top: 1px solid var(--hairline-color, #e5e7eb);
}
.axe-guide-btn {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 999px;
  background: var(--darkened-bg, #f3f4f6);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  cursor: pointer;
}
.axe-guide-btn:hover,
.axe-guide-btn:focus {
  outline: 2px solid var(--link-fg, #417690);
  outline-offset: 1px;
}
