.app-header {
  padding: 0.65rem 1rem 0.75rem;
  width: 100%;
  z-index: 10;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-align: left;
}

.app-header__pokeball {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--pokeball-rim);
  background: linear-gradient(180deg, var(--accent) 50%, var(--pokeball-highlight) 50%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) inset;
  position: relative;
}
.app-header__pokeball::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pokeball-highlight);
  border: 2px solid var(--pokeball-rim);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.app-header__titles { min-width: 0; }

.app-header__label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.app-header__title {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  line-height: 1.35;
  word-break: break-all;
}

.app-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


@media (max-width: 520px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  .app-header__brand  { order: 1; }
  .app-header__actions {
    order: 3;
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .auth-page .app-header {
    flex-direction: row;
    align-items: center;
  }
}
