.context-help-button {
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  min-width: 1.3rem;
  margin-inline: 0.35rem;
  padding: 0;
  border: 1px solid var(--muted, #65716b);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  vertical-align: middle;
}
.context-help-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.context-help-popup {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 1rem;
  max-height: min(70vh, 32rem);
  overflow: auto;
  border: 1px solid var(--line, #aab8ae);
  border-radius: 0.65rem;
  background: var(--paper, #fff);
  color: var(--ink, #243d32);
  box-shadow: 0 0.4rem 1.8rem #0003;
  font-size: 0.9rem;
  line-height: 1.5;
  z-index: 100;
}
.context-help-popup[hidden] {
  display: none;
}
:root[data-theme='dark'] .context-help-popup {
  background: #22312b;
  color: #ecf0e9;
}

.context-help-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.context-help-label > label {
  margin-bottom: 0;
}
.context-help-label > .context-help-button {
  flex: 0 0 auto;
}
.context-help-label > h2 {
  min-width: 0;
}
.dialog-top > .context-help-label {
  min-width: 0;
  flex: 1;
}

.context-help-popup p {
  margin: 0 0 0.85rem;
}
.context-help-legend {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0.75rem 0 1rem;
  list-style: none;
}
.context-help-legend > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.context-help-legend > li > svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.context-help-points {
  padding-inline-start: 1.2rem;
  margin: 0 0 0.85rem;
}
.context-help-points > li + li {
  margin-top: 0.45rem;
}
.context-help-inline-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
}
.context-help-symbol {
  display: inline-block;
  min-width: 1.2em;
  padding-inline: 0.15em;
  border: 1px solid var(--line, #aab8ae);
  border-radius: 0.25em;
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
}

.inventory-topbar .breadcrumbs .context-help-button {
  height: 1.3rem;
  min-height: 1.3rem;
  padding: 0;
  border: 1px solid var(--muted, #65716b);
  text-align: center;
}
.context-help-scopes .context-help-legend > li {
  align-items: flex-start;
}
.context-help-scopes .context-help-legend p {
  margin: 0.4rem 0 0;
}
.context-help-scopes .context-help-group {
  padding: 0.75rem;
  border-left: 3px solid currentColor;
  border-radius: 0.35rem;
  background: var(--soft, #eef1e8);
}

.context-help-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--soft);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.context-help-popup .context-help-reminder {
  clear: both;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}
.feedback-dialog .dialog-top > .context-help-label {
  flex-wrap: nowrap;
  min-width: 0;
}
.feedback-dialog .dialog-top > .context-help-label > h2 {
  overflow-wrap: anywhere;
}

.context-help-popup {
  padding-inline-end: 2.75rem;
}
.context-help-first-step > strong {
  display: block;
  margin-bottom: 0.6rem;
}
.context-help-start {
  min-height: 2.6rem;
  width: 100%;
  margin-top: 0.25rem;
}
