#root .page-heading.aim-editor-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  column-gap: clamp(8px, 1.1vw, 14px);
}

#root .page-heading > .aim-editor-shortcut {
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: clamp(12px, 1.35vw, 18px);
  border: 1px solid rgba(183, 151, 255, .30);
  border-radius: 999px;
  color: #e6d9ff;
  background: linear-gradient(125deg, #251b39, #151121);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

#root .page-heading > .aim-editor-shortcut:hover {
  color: #faf5ff;
  border-color: rgba(194, 161, 255, .60);
  background: linear-gradient(125deg, #33234e, #1d152e);
}

#root .page-heading > .aim-editor-shortcut:focus-visible {
  outline: 2px solid #c3a7ff;
  outline-offset: 3px;
}

.aim-editor-shortcut svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: #cdb4ff;
}

@media (max-width: 900px) {
  #root .page-heading.aim-editor-heading {
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 12px 8px;
  }

  #root .page-heading.aim-editor-heading > div { grid-column: 1 / -1; min-width: 0 }
}

@media (max-width: 520px) {
  #root .page-heading.aim-editor-heading { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) }
  #root .page-heading.aim-editor-heading > :is(.aim-editor-shortcut, .primary-button) {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #root .page-heading > .aim-editor-shortcut { gap: 6px; padding-inline: 7px }
}

@media (max-width: 340px) {
  #root .page-heading > .aim-editor-shortcut svg { display: none }
}

@media (prefers-reduced-motion: reduce) {
  #root .page-heading > .aim-editor-shortcut { transition: none; transform: none }
}
