.header-brand-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
  padding-block: 6px;
}
.header-brand-app .wordmark { max-width: 100%; }
.header-app-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 28px;
  max-width: 100%;
  padding-inline: .65em;
  border: 1px solid var(--line);
  border-radius: 2em;
  color: var(--ink);
  font: 500 13px/1.25 system-ui, sans-serif;
  text-decoration: none;
}
.header-app-link svg { flex: none; }
.header-app-link:hover { border-color: currentColor; }
.header-app-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 640px) {
  .header-app-link { font-size: 12px; }
}

@media (min-width: 641px) {
  .header-brand-app {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .header-brand-app .header-app-link {
    position: relative;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 17px;
    background: var(--paper);
  }
  .header-app-link svg { width: 21px; height: 21px; }
  .header-app-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-app-link:is(:hover, :focus-visible) span {
    top: calc(100% + 5px);
    inset-inline-start: 0;
    z-index: 2;
    width: max-content;
    height: auto;
    clip-path: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    background: var(--paper);
  }
}
