.help-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.help-control { flex: none; }

.help-trigger {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--subtle);
  background: transparent;
}

.help-trigger:hover,
.help-trigger:focus-visible { color: var(--muted); }

.help-trigger svg { width: 14px; height: 14px; }
.help-heading h1 + .help-control svg { width: 17px; height: 17px; }

.help-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: min(18rem, calc(100vw - 24px));
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media screen and (max-width: 760px) {
  .help-trigger { width: 44px; height: 44px; }
  .help-heading .help-trigger { width: 32px; height: 32px; }
}
